### Question:
UiAppClusterService { public UiResponse findByInstanceId(String instanceId) { UiResponse uiResponse = new UiResponse(); Long count; List<AppClusterEntity> appClusterList; count = uiAppClusterRepository.appClusterCount(instanceId); appClusterList = uiAppClusterRepository.findByInstanceId(instanceId); return UiResponseHelper.setUiResponse(uiResponse, count, appClusterList); }  UiResponse findByInstanceId(String instanceId); UiResponse findByClusterName(Map parameterMap);  }### Answer:
@Test public void testFindByInstanceId() { RegisterInstanceRequest registerInstanceRequest = RegisterInstanceUtil.setRegisterInstanceRequest(); RegisterInstanceResponse response = instanceService.registerInstance(registerInstanceRequest); InstanceEntity testInstanceEntity = RegisterInstanceUtil.createTestInstanceEntity(); InstanceEntity instanceEntity = instanceService.findByCandInstanceId("w545878765"); Assert.assertEquals(testInstanceEntity.getAppClusterName(), instanceEntity.getAppClusterName()); long instanceId=instanceEntity.getId(); AppClusterEntity appClusterEntity=(AppClusterEntity) uiAppClusterService.findByInstanceId(Long.toString(instanceId)).getData().get(0); Assert.assertEquals("wCluster", appClusterEntity.getClusterName()); }