@Test
public void testDeleteExtension() {

    final ExtensionEntity extension = metadataService.getExtensionById("e1");
    assertNotNull(extension);
    metadataService.deleteExtension(extension);
    final ExtensionEntity deletedExtension = metadataService.getExtensionById("e1");
    assertNull(deletedExtension);
}