### Question:
ExtensionPointHandler { public static void callExtensionPoint( final ILogChannel log, final String id, final Object object ) throws HopException { ExtensionPointMap.getInstance().callExtensionPoint( log, id, object ); }  static void callExtensionPoint( final ILogChannel log, final String id, final Object object );  }### Answer:
@Test public void callExtensionPointTest() throws Exception { IPluginMock pluginInterface = mock( IPluginMock.class ); when( pluginInterface.getName() ).thenReturn( TEST_NAME ); when( pluginInterface.getMainType() ).thenReturn( (Class) IExtensionPoint.class ); when( pluginInterface.getIds() ).thenReturn( new String[] { "testID" } ); IExtensionPoint extensionPoint = mock( IExtensionPoint.class ); when( pluginInterface.loadClass( IExtensionPoint.class ) ).thenReturn( extensionPoint ); PluginRegistry.addPluginType( ExtensionPointPluginType.getInstance() ); PluginRegistry.getInstance().registerPlugin( ExtensionPointPluginType.class, pluginInterface ); final ILogChannel log = mock( ILogChannel.class ); ExtensionPointHandler.callExtensionPoint( log, "noPoint", null ); verify( extensionPoint, never() ).callExtensionPoint( any( ILogChannel.class ), any() ); ExtensionPointHandler.callExtensionPoint( log, TEST_NAME, null ); verify( extensionPoint, times( 1 ) ).callExtensionPoint( eq( log ), isNull() ); }