}
private PluginMechanism mockPluginMechanism() {
PluginMechanism pluginMechanism = mock(PluginMechanism.class);
when(pluginMechanism.loadClass(endsWith("MockConnector")))
.thenAnswer(new Answer<Class<?>>() {
@Override
public Class<?> answer(InvocationOnMock invocation)
throws Throwable {