UnsyncByteArrayInputStream extends InputStream { @Override public boolean markSupported() { return true; } UnsyncByteArrayInputStream(byte[] buffer);  UnsyncByteArrayInputStream(byte[] buffer, int offset, int length); @Override int available(); @Override void mark(int readAheadLimit); @Override boolean markSupported(); @Override int read(); @Override int read(byte[] bytes); @Override int read(byte[] bytes, int offset, int length); @Override void reset(); @Override long skip(long skip);  }
@Test public void testMarkSupported() { UnsyncByteArrayInputStream unsyncByteArrayInputStream = new UnsyncByteArrayInputStream(_BUFFER); Assert.assertTrue(unsyncByteArrayInputStream.markSupported()); }