@Test public void testHandlePutPassesToBackendRepo() { String key = "a"; String value = "yay"; underTest.handlePut(key, value.getBytes()); verify(mockRepository).put(key, value); }
@Override public SiriusResult handlePut(String key, byte[] body) { RefAppState.repository.put(key, new String(body)); return SiriusResult.some(OK); }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handlePut(String key, byte[] body) { RefAppState.repository.put(key, new String(body)); return SiriusResult.some(OK); } }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handlePut(String key, byte[] body) { RefAppState.repository.put(key, new String(body)); return SiriusResult.some(OK); }  }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handlePut(String key, byte[] body) { RefAppState.repository.put(key, new String(body)); return SiriusResult.some(OK); }  @Override SiriusResult handleGet(String key); @Override SiriusResult handlePut(String key, byte[] body); @Override SiriusResult handleDelete(String key); }
DefaultRequestHandler implements RequestHandler { @Override public SiriusResult handlePut(String key, byte[] body) { RefAppState.repository.put(key, new String(body)); return SiriusResult.some(OK); }  @Override SiriusResult handleGet(String key); @Override SiriusResult handlePut(String key, byte[] body); @Override SiriusResult handleDelete(String key);  }