EmployeeViewService { public EmployeeView getEmployeeViewByAssignment(final Long id) { return employeeViewRepository.findByAssignment_Id(id); } @Autowired  EmployeeViewService(final EmployeeViewRepository employeeViewRepository); EmployeeView getEmployeeViewByAssignment(final Long id); List<EmployeeView> getEmployeeByNameOrCodeOrPositionLike(String userName, String code,
                                                                    String positionName, Date currentDate);  }
@Test public void getViewByAssignment() { final EmployeeView empView = employeeViewwService.getEmployeeViewByAssignment(1l); assertNotNull(empView); }