try {
handler.init(config1);
ReplicationEntry repEntry1 = new ReplicationEntry(0, dnode1.getAddress(), dnode2.getAddress());
ReplicationEntry repEntry2 = new ReplicationEntry(0, dnode1.getAddress());
DeployRequest deployRequest1 = new DeployRequest();
deployRequest1.setTablespace("partition1");
deployRequest1.setPartitionMap(PartitionMap.oneShardOpenedMap().getPartitionEntries());
deployRequest1.setReplicationMap(Arrays.asList(repEntry1));
deployRequest1.setData_uri("hdfs://foo/bar1");
DeployRequest deployRequest2 = new DeployRequest();
deployRequest2.setTablespace("partition2");
deployRequest2.setPartitionMap(PartitionMap.oneShardOpenedMap().getPartitionEntries());
deployRequest2.setReplicationMap(Arrays.asList(repEntry2));
deployRequest2.setData_uri("hdfs://foo/bar2");
List<DeployRequest> l = new ArrayList<DeployRequest>();
l.add(deployRequest1);
l.add(deployRequest2);