@Test
public void testDoubleClose() throws IOException, TransportException {

  GenericTransportSerializer serializer = mock(GenericTransportSerializer.class);
  GenericTransportBuffer buffer = new GenericTransportBuffer(1, true, serializer);
  buffer.close();
  buffer.close();
}