### Question:
BaseStringReader implements StringReader { @Override public boolean isReadable() { return byteArrayReader != null && byteArrayReader.isReadable(); } BaseStringReader(ByteArrayReader byteArrayReader); @Override boolean isReadable(); @Override String get(long pos); @Override void release();  }### Answer:
@Test public void isReadable() { assertFalse(new BaseStringReader(null).isReadable()); when(byteArrayReader.isReadable()).thenReturn(true); assertTrue(new BaseStringReader(byteArrayReader).isReadable()); }