### Question:
ProjectionServiceImpl implements ProjectionService, Constants { @Override public Boolean updateProjection(ProjectionRequest projectionRequest) throws ServiceException { try { return repository.updateProjectionByTargetType(projectionRequest); } catch (DataException e) { logger.error("Error @ updateProjection", e); throw new ServiceException(e); } }  @Override Boolean updateProjection(ProjectionRequest projectionRequest); @Override ProjectionResponse getProjection(String resourceType, int year,
            int quarter); Long getTotalAsseCountByTargetType(String targetType); @Override ProjectionResponse getPatchingAndProjectionByWeek(String assetGroup); @Override PatchingProgressResponse getPatchingProgressByDirector(
            String assetGroup); @Override PatchingProgressResponse patchProgByExSponsor(String assetGroup);  }### Answer:
@Test public void updateProjectionTest() throws Exception { projectionRequest.setQuarter(2); projectionRequest.setResourceType("onpremserver"); projectionRequest.setYear(2018); when(repository.updateProjectionByTargetType(anyObject())) .thenReturn(true); assertThat(projectionServiceImpl.updateProjection(projectionRequest), is(true)); }