CachedObjectWrapper implements CachedObject { @Override public int getFlags() { return cachedData.getFlags(); } CachedObjectWrapper(final CachedData cachedData); @Override byte[] getData(); @Override int getFlags(); @Override String toString();  }
@Test public void getFlags() { assertEquals(flags, cachedObjectWrapper.getFlags()); }