@Test public void shouldGetTypeById() throws Exception { service.getById(1L); verify(repository).getById(1L); }
public EquipmentEnergyType getById(Long id){ return repository.getById(id); }
EquipmentEnergyTypeService { public EquipmentEnergyType getById(Long id){ return repository.getById(id); } }
EquipmentEnergyTypeService { public EquipmentEnergyType getById(Long id){ return repository.getById(id); }  }
EquipmentEnergyTypeService { public EquipmentEnergyType getById(Long id){ return repository.getById(id); }  List<EquipmentEnergyType> getAll(); EquipmentEnergyType getById(Long id); void save(EquipmentEnergyType energyType); }
EquipmentEnergyTypeService { public EquipmentEnergyType getById(Long id){ return repository.getById(id); }  List<EquipmentEnergyType> getAll(); EquipmentEnergyType getById(Long id); void save(EquipmentEnergyType energyType);  }