### Question:
EntityManagerService extends AbstractEntityTypeService<IApsEntity, EntityTypeFullDto> implements IEntityManagerService { @Override public EntityManagerDto getEntityManager(String entityManagerCode) { IEntityManager entityManager = this.extractEntityManager(entityManagerCode); return this.getEntityManagerDtoBuilder().convert(entityManager); }  @Override PagedMetadata<String> getEntityManagers(RestListRequest requestList); @Override PagedMetadata<EntityTypeShortDto> getShortEntityTypes(String entityManagerCode, RestListRequest requestList); @Override EntityManagerDto getEntityManager(String entityManagerCode); @Override EntityTypeFullDto getFullEntityType(String entityManagerCode, String entityTypeCode); @Override EntityTypeFullDto addEntityType(String entityManagerCode, EntityTypeDtoRequest bodyRequest, BindingResult bindingResult); @Override EntityTypeFullDto updateEntityType(String entityManagerCode, EntityTypeDtoRequest request, BindingResult bindingResult); @Override void deleteEntityType(String entityManagerCode, String entityTypeCode); @Override PagedMetadata<String> getAttributeTypes(String entityManagerCode, RestListRequest requestList);  }### Answer:
@Test(expected = ResourceNotFoundException.class) public void testGetNotExistingManager() throws ResourceNotFoundException { this.entityManagerService.getEntityManager("customCode"); fail(); }