@Test public void shouldGetById() throws Exception { when(repository.getById(1L)).thenReturn(new ProcessingPeriod()); service.getById(1L); verify(repository).getById(1L); }
public ProcessingPeriod getById(Long id){ return repository.getById(id); }
ProcessingPeriodService { public ProcessingPeriod getById(Long id){ return repository.getById(id); } }
ProcessingPeriodService { public ProcessingPeriod getById(Long id){ return repository.getById(id); }  }
ProcessingPeriodService { public ProcessingPeriod getById(Long id){ return repository.getById(id); }  ProcessingPeriod getById(Long id); }
ProcessingPeriodService { public ProcessingPeriod getById(Long id){ return repository.getById(id); }  ProcessingPeriod getById(Long id);  }