@Override
  public void write(int b) throws IOException {
    byte[] data = new byte[] {
        (byte) b
    };
    write(data);
  }
@Test
    public void testWrite() throws Exception {
        DistributedLogManager dlm = mock(DistributedLogManager.class);
        AppendOnlyStreamWriter writer = mock(AppendOnlyStreamWriter.class);
        DLOutputStream out = new DLOutputStream(dlm, writer);

        byte[] data = new byte[16];
        out.write(data);
        verify(writer, times(1)).write(data);
    }