@Test
public void shouldRemovePluginFromInstance() {

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