@Override
@Test
public final void givenResourceHasAssociations_whenResourceIsRetrieved_thenAssociationsAreAlsoRetrieved() {
// Given
final Privilege existingAssociation = getAssociationAPI().create(getAssociationEntityOps().createNewEntity());
final Role newResource = getEntityOps().createNewEntity();
newResource.getPrivileges().add(existingAssociation);
// When
final Role existingResource = getApi().create(newResource);
// Then
assertThat(existingResource.getPrivileges(), notNullValue());
assertThat(existingResource.getPrivileges(), not(Matchers.<Privilege> empty()));
}