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);
// Query key 2 (> 1 < 10)
QueryStatus qStatus = handler.query("tablespace1", "2", "SELECT 1;", null);
Assert.assertEquals(new Integer(0), qStatus.getShard());