@Test public void test_getObjectType() { ObjectType objectType = new ObjectType(); when(objectTypeRepository.findForId(any(Long.class))).thenReturn(objectType); ObjectType result = objectTypeService.getObjectType(any(Long.class)); assertThat(result).isEqualTo(objectType); }
public ObjectType getObjectType(Long id) { return objectTypeRepository.findForId(id); }
ObjectTypeService { public ObjectType getObjectType(Long id) { return objectTypeRepository.findForId(id); } }
ObjectTypeService { public ObjectType getObjectType(Long id) { return objectTypeRepository.findForId(id); }  }
ObjectTypeService { public ObjectType getObjectType(Long id) { return objectTypeRepository.findForId(id); }  ObjectType getObjectType(Long id); }
ObjectTypeService { public ObjectType getObjectType(Long id) { return objectTypeRepository.findForId(id); }  ObjectType getObjectType(Long id);  }