@Test public void removeProfileSchemaByIdTest() { String schemaId = generateProfSchemaDto(null, null, 1).get(0).getId(); EndpointProfileSchemaDto schemaDto = profileService.findProfileSchemaById(schemaId); Assert.assertNotNull(schemaDto); profileService.removeProfileSchemaById(schemaId); schemaDto = profileService.findProfileSchemaById(schemaId); Assert.assertNull(schemaDto); }