// check that we find the acceptor class in the test plugin
Set<Class<? extends Acceptor>> acceptorTypes = pluginMechanism.loadTypes(Acceptor.class);
Assert.assertEquals(1, acceptorTypes.size());
Assert.assertEquals(acceptorClass, acceptorTypes.iterator().next());
pluginMechanism.destroy();
}
@Test
public void testLoadActionTypes() throws Exception {
JpfPluginMechanism pluginMechanism = new JpfPluginMechanism(PLUGINS_PATH);