@Test
public void shouldRemovePluginFromName() {

    registry.put("test", plugin);
    final TestPlugin test = context.removePlugin("test");
    assertFalse(registry.containsKey("test"));
    assertEquals(plugin, test);
}