@Test
public void testRegisterPlugin() {

  // register plugin1 by its factory
  ReaderPlugin testPlugin = proxyService.registerPlugin(factory1);
  // results
  Map<String, ReaderPlugin> testPlugins = proxyService.getPlugins();
  Assert.assertNotNull(testPlugin);
  Assert.assertEquals(PLUGIN_NAME_1, testPlugin.getName());
  Assert.assertEquals(1, testPlugins.size());
  // unregister
  proxyService.unregisterPlugin(PLUGIN_NAME_1);
}