S3TransportBuffer implements TransportBuffer { @Override public boolean isEmpty() { return this.cos.getByteCount() == 0; } S3TransportBuffer(long maxBytes, boolean useCompression, S3TransportSerializer serializer); @Override boolean add(InternalEvent ievent); @Override ByteArrayOutputStream getInternalBuffer(); @Override boolean isEmpty(); @Override void close(); @Override void clear(); boolean isCompressed();  }
@Test public void testEmptyBuffer() throws IOException, TransportException { S3TransportSerializer serializer = mock(S3TransportSerializer.class); S3TransportBuffer buffer = new S3TransportBuffer(5, false, serializer); assertEquals(true, buffer.isEmpty()); }