@Test
public void theResultOfTheXpathCanMatchedUsingEquivalentToWhenTheResultIsANumber() {

	assertThat(
			xml,
			hasXPath("/mountains/volcanoe/@eruptions", returningANumber(),
					equalTo(2.0)));
	assertThat(
			xml,
			hasXPath("/mountains/volcanoe/@eruptions", returningANumber(),
					closeTo(4, 2)));
	assertThat(
			xml,
			hasXPath("/mountains/volcanoe/@eruptions", returningANumber(),
					lessThan(5d)));
	assertThat(
			xml,
			hasXPath("/mountains/volcanoe/@eruptions", returningANumber(),
					lessThanOrEqualTo(5.0)));
	assertThat(
			xml,
			hasXPath("count(/mountains/mountain)", returningANumber(),
					equalTo(2d)));
}