@Test public void removeProfileSchemasByAppIdTest() { int profSchemaCount = 2; ApplicationDto application = generateApplicationDto(null); generateProfSchemaDto(application.getTenantId(), application.getId(), profSchemaCount); List<EndpointProfileSchemaDto> schemas = profileService.findProfileSchemasByAppId(application.getId()); Assert.assertNotNull(schemas); Assert.assertFalse(schemas.isEmpty()); profileService.removeProfileSchemasByAppId(application.getId()); schemas = profileService.findProfileSchemasByAppId(application.getId()); Assert.assertNotNull(schemas); Assert.assertTrue(schemas.isEmpty()); }