@Test
public void testLoad() {

  // given
  MockPlugin plugin = new MockPlugin();
  // when
  assertTrue(loader.load(plugin), "Plugin was not loaded");
  // then
  assertTrue(plugin.isLoaded());
  assertTrue(loader.getLoadedPlugins().contains(plugin));
  assertTrue(loader.getKnownPlugins().contains(plugin));
  assertTrue(dataTypes.isRegistered(MockPlugin.dataType));
  assertTrue(sourceTypes.isRegistered(MockPlugin.sourceType));
  assertTrue(components.isRegistered(MockPlugin.component));
  assertTrue(themes.isRegistered(MockPlugin.theme));
}