### Question:
PartitionServerHandler implements IfaceWithShutdown { @Override public HankResponse get(int domainId, ByteBuffer key) { ReaderResult result = readerResultThreadLocal.get(); if (result.getBuffer() != null && result.getBuffer().capacity() > bufferReuseMaxSize) { readerResultThreadLocal.remove(); result = readerResultThreadLocal.get(); } result.clear(); return _get(this, domainId, key, result); } PartitionServerHandler(PartitionServerAddress address,
                                PartitionServerConfigurator configurator,
                                Coordinator coordinator); @Override HankResponse get(int domainId, ByteBuffer key); @Override HankBulkResponse getBulk(int domainId, List<ByteBuffer> keys); @Override void shutDown();  }### Answer:
@Test public void testSetUpAndServe() throws Exception { PartitionServerHandler handler = createHandler(0); assertEquals(HankResponse.value(V1), handler.get((byte)0, K1)); assertEquals(HankResponse.value(V1), handler.get((byte)0, K5)); assertEquals(HankResponse.xception(HankException.wrong_host(true)), handler.get(0, K2)); assertEquals(HankResponse.xception(HankException.wrong_host(true)), handler.get(0, K3)); assertEquals(HankResponse.xception(HankException.wrong_host(true)), handler.get(0, K4)); }