@Test
public void EntityHasMultiplePairsAndWKTs() {

	EntityDefinitionAssembler emAssembler = new EntityDefinitionAssembler();
	EntityDefinition entityDef = emAssembler.open(null, spec2, null);
	assertEquals(2, entityDef.getCustomSpatialPredicatePairCount());
	assertEquals(true, entityDef.hasSpatialPredicatePair(
			SPEC2_LATITUDE_1.asNode(), SPEC2_LONGITUDE_1.asNode()));
	assertEquals(true, entityDef.hasSpatialPredicatePair(
			SPEC2_LATITUDE_2.asNode(), SPEC2_LONGITUDE_2.asNode()));
	assertEquals(false, entityDef.hasSpatialPredicatePair(
			SPEC2_LATITUDE_1.asNode(), SPEC2_LONGITUDE_2.asNode()));
	assertEquals(false, entityDef.hasSpatialPredicatePair(
			SPEC2_LATITUDE_2.asNode(), SPEC2_LONGITUDE_1.asNode()));
	assertEquals(2, entityDef.getCustomWKTPredicateCount());
	assertEquals(true, entityDef.isWKTPredicate(SPEC2_WKT_1.asNode()));
	assertEquals(true, entityDef.isWKTPredicate(SPEC2_WKT_2.asNode()));
	assertEquals(false, entityDef.isWKTPredicate(SPEC1_WKT.asNode()));
}