handler.init(SploutConfiguration.getTestConfig());
SploutConfiguration config = SploutConfiguration.getTestConfig();
DNode dnode = TestUtils.getTestDNode(config, dHandler, "dnode-" + this.getClass().getName() + "-2");
try {
ReplicationEntry repEntry = new ReplicationEntry(0, dnode.getAddress());
Tablespace tablespace1 = new Tablespace(PartitionMap.oneShardOpenedMap(), new ReplicationMap(
Arrays.asList(repEntry)), 0l, 0l);
handler.getContext().getTablespaceVersionsMap()
.put(new TablespaceVersion("tablespace1", 0l), tablespace1);
handler.getContext().getCurrentVersionsMap().put("tablespace1", 0l);