@Test public void shouldGetTypeById() throws Exception { service.getTypeById(1L); verify(repository).getEquipmentTypeById(1L); }
public EquipmentType getTypeById(Long id){ return repository.getEquipmentTypeById(id); }
EquipmentTypeService { public EquipmentType getTypeById(Long id){ return repository.getEquipmentTypeById(id); } }
EquipmentTypeService { public EquipmentType getTypeById(Long id){ return repository.getEquipmentTypeById(id); }  }
EquipmentTypeService { public EquipmentType getTypeById(Long id){ return repository.getEquipmentTypeById(id); }  List<EquipmentType> getAll(); EquipmentType getTypeById(Long id); void save(EquipmentType type); }
EquipmentTypeService { public EquipmentType getTypeById(Long id){ return repository.getEquipmentTypeById(id); }  List<EquipmentType> getAll(); EquipmentType getTypeById(Long id); void save(EquipmentType type);  }