HadoopClusterDelegateBridgeImpl implements HadoopClusterDelegate { @Override public void dupeNamedCluster( IMetaStore metaStore, NamedCluster nc, Shell shell ) { delegate.dupeNamedCluster( metaStore, new NamedClusterBridgeImpl( nc ), shell ); } HadoopClusterDelegateBridgeImpl( HadoopClusterDelegateImpl delegate ); @Override String editNamedCluster( IMetaStore metaStore, NamedCluster namedCluster, Shell shell ); @Override String newNamedCluster( VariableSpace variableSpace, IMetaStore metaStore, Shell shell ); @Override void dupeNamedCluster( IMetaStore metaStore, NamedCluster nc, Shell shell ); @Override void delNamedCluster( IMetaStore metaStore, NamedCluster namedCluster );  }
@Test public void testDupeNamedCluster() { hadoopClusterDelegateBridge.dupeNamedCluster( iMetaStore, namedCluster, shell ); verify( hadoopClusterDelegate ).dupeNamedCluster( eq( iMetaStore ), nameMatches( namedCluster ), eq( shell ) ); }