@Test public void removeEndpointGroupByAppIdTest() { String appId = generateApplicationDto().getId(); List<EndpointGroupDto> groupDtoList = endpointService.findEndpointGroupsByAppId(appId); Assert.assertNotNull(groupDtoList); Assert.assertFalse(groupDtoList.isEmpty()); endpointService.removeEndpointGroupByAppId(appId); groupDtoList = endpointService.findEndpointGroupsByAppId(appId); Assert.assertNotNull(groupDtoList); Assert.assertTrue(groupDtoList.isEmpty()); }