@Test public void removeLogSchemasByAppIdTest() { List<LogSchemaDto> schemas = logSchemaService.findLogSchemasByAppId(applicationDto.getId()); Assert.assertEquals(1, schemas.size()); logSchemaService.removeLogSchemasByAppId(applicationDto.getId()); schemas = logSchemaService.findLogSchemasByAppId(applicationDto.getId()); Assert.assertEquals(0, schemas.size()); }