NamedClusterServiceOsgiImpl implements NamedClusterServiceOsgi { @Override public void setClusterTemplate( NamedClusterOsgi clusterTemplate ) { namedClusterService.setClusterTemplate( (NamedCluster) clusterTemplate ); } NamedClusterServiceOsgiImpl( NamedClusterService namedClusterService ); @Override NamedClusterOsgi getClusterTemplate(); @Override void setClusterTemplate( NamedClusterOsgi clusterTemplate ); @Override void create( NamedClusterOsgi namedCluster, IMetaStore metastore ); @Override NamedClusterOsgi read( String clusterName, IMetaStore metastore ); @Override void update( NamedClusterOsgi namedCluster, IMetaStore metastore ); @Override void delete( String clusterName, IMetaStore metastore ); @Override List<NamedClusterOsgi> list( IMetaStore metastore ); @Override List<String> listNames( IMetaStore metastore ); @Override boolean contains( String clusterName, IMetaStore metastore ); @Override NamedClusterOsgi getNamedClusterByName( String namedCluster, IMetaStore metastore ); @Override Map<String, Object> getProperties(); @Override void close( IMetaStore metastore );  }
@Test public void setClusterTemplateTest() { mockNamedClusterServiceOsgi.setClusterTemplate( mockNamedClusterOsgi ); verify( mockNamedClusterService ).setClusterTemplate( any( NamedCluster.class ) ); }