Bucket { @VisibleForTesting static boolean isEmpty(HttpContent content) { return content.content().capacity() == 0; }  static boolean cacheable(HttpObject request); static synchronized HttpResponse get(HttpObject request); static synchronized void store(HttpRequest req, HttpObject httpObject); static String requestId(HttpObject request); static void map(HttpRequest request, HttpObject response);  }
@Test public void should_checkIfContentIsEmpty() { assertThat(Bucket.isEmpty(emptyRequest), is(true)); }