// assertTrue(retVal.getEntry().get(0).getValue().getValue() instanceof Person);
// assertTrue(retVal.getEntry().get(1).getValue().getValue() instanceof Person);
// assertTrue(retVal.getEntry().get(2).getValue().getValue() instanceof Source);
// assertTrue(retVal.getEntry().get(3).getValue().getValue() instanceof Source);
RelationshipService relationshipService = new RelationshipServiceImpl("http://localhost:" + port + "/" + context + "/soap-services/RelationshipServiceService");
List list = relationshipService.getRelationships("someid");
for (int i = 0; i < list.size(); i++) {
Relationship relationship = (Relationship) list.get(i);
assertEquals(String.valueOf(i), relationship.getId());
}
try {
relationshipService.getRelationships("throw");
fail("Should have thrown the relationship service exception, even though it wasn't annotated with @WebFault.");
}
catch (RelationshipException e) {
assertEquals("hi", e.getMessage());
}
relationshipService.touch();
AssertionService assertionService = new AssertionServiceImpl("http://localhost:" + port + "/" + context + "/soap-services/AssertionServiceService");
List<Assertion> assertions = assertionService.readAssertions();
Assertion gender = assertions.get(0);
assertEquals("gender", gender.getId());