I have the test working now. I am now running the following :
When("^(\\S+) has (\\d+) articles subscribed$", (String feed, Integer count) -> LOG.info("scenario 3 --- number of articles subscribed to feed " + feed + " is " + count));
Then("^(\\d+) pages should show on the (\\S+\\.page) in the related news widget$", (Integer outcome, String currentPage) -> {
LOG.info("scenario 3 --- " + outcome + " pages should show on the " + currentPage);
try {
Node group = getNode("/Collection/Root/Group");
assertThat(group.getChildNodes().getLength(), equalTo(outcome.toString()));
} catch (Exception e) {
LOG.error("Exception handling XML source", e);
}
});