WindmillStateCache implements StatusDataProvider { public long getMaxWeight() { return workerCacheBytes; } WindmillStateCache(Integer workerCacheMb); long getWeight(); long getMaxWeight(); ForComputation forComputation(String computation); @Override void appendSummaryHtml(PrintWriter response); BaseStatusServlet statusServlet();  }
@Test public void testMaxWeight() throws Exception { assertEquals(400 * MEGABYTES, cache.getMaxWeight()); }