/** * @see PersonService#saveRelationshipType(RelationshipType) */ @Test public void saveRelationshipType_shouldUpdateExistingObjectWhenRelationshipTypeIdIsNotNull() throws Exception { RelationshipType savedRelationshipType = Context.getPersonService().getRelationshipType(1); Assert.assertNotNull(savedRelationshipType.getRelationshipTypeId()); savedRelationshipType.setPreferred(true); RelationshipType updatedRelationshipType = personService.saveRelationshipType(savedRelationshipType); Assert.assertEquals(true, updatedRelationshipType.getPreferred()); }