public class ClusterManagerTest {
@Test
public void test() throws Exception {
ClusterManager manager=ClusterManagerFactoryImpl.getInstance().getClusterManager();
TestClusterEntity e1=new TestClusterEntity();
e1=(TestClusterEntity)manager.distribute(e1);
assertNotNull(e1);
assertNotNull(e1.getId());
TestClusterEntity e2=(TestClusterEntity) manager.get(e1.getId(),TestClusterEntity.class);
assertNotNull(e2);
assertEquals(e2.getId(),e1.getId());
}