### Question:
UiAppService { public UiResponse findByAppName(Map parameterMap) { UiResponse uiResponse = new UiResponse(); Long count; List<AppEntity> appList; List<AppEntityVo> appEntityVoList=new ArrayList<>(); count = appRepository.countByAppName(parameterMap); appList = appRepository.findByAppName(parameterMap); for(AppEntity appEntity:appList){ AppEntityVo appEntityVo=new AppEntityVo(appEntity); appEntityVo.setRole(roleService.getRole(appEntity)); appEntityVoList.add(appEntityVo); } return UiResponseHelper.setUiResponse(uiResponse, count, appEntityVoList); }  UiResponse findByInstanceId(String instanceId); UiResponse findByAppName(Map parameterMap); int update(AppEntity updateEntity); UiResponse update(AppUpdateRequest appUpdateRequest); AppEntity setUpdateEntity(AppUpdateRequest appUpdateRequest);  }### Answer:
@Test public void testFindByAppName(){ RegisterInstanceRequest registerInstanceRequest = RegisterInstanceUtil.setRegisterInstanceRequest(); RegisterInstanceResponse response = instanceService.registerInstance(registerInstanceRequest); InstanceEntity testInstanceEntity = RegisterInstanceUtil.createTestInstanceEntity(); InstanceEntity instanceEntity = instanceService.findByCandInstanceId("w545878765"); Map<String, Object> parameterMap = new LinkedHashMap<String, Object>(); parameterMap.put("appName", "wApp"); AppEntity appEntity=(AppEntity) uiAppService.findByAppName(parameterMap).getData().get(0); Assert.assertEquals("wApp", appEntity.getAppName()); }