test_class.file: json-cbor/src/test/java/org/eclipse/ditto/json/cbor/ByteBufferOutputStreamTest.java
test_class.identifier: ByteBufferOutputStreamTest
test_case.body: @Test
      public void writesThroughToBuffer() throws IOException {
          final int expectedCount = 11;
          final ByteBuffer buffer = ByteBuffer.allocate(expectedCount);
          final ByteBufferOutputStream outputStream = new ByteBufferOutputStream(buffer);
  
  
          for (int i = 0; i < 5; i++) {
              outputStream.write(i);
          }
          outputStream.write(new byte[]{7,8,9});
          outputStream.write(new byte[]{10,11,12,13,14}, 1, 3);
  
          Assertions.assertThat(buffer.position()).isEqualTo(expectedCount);
      }
test_case.class_method_signature: ByteBufferOutputStreamTest.writesThroughToBuffer()
test_case.full_signature: @Test public void writesThroughToBuffer()
test_case.identifier: writesThroughToBuffer
test_case.invocations: allocate write write write isEqualTo assertThat position
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void writesThroughToBuffer()
focal_class.declarator: destinationBuffer
focal_class.modifier: private final
focal_class.original_string: private final ByteBuffer destinationBuffer;
focal_class.type: ByteBuffer
focal_class.var_name: destinationBuffer
focal_class.file: json-cbor/src/main/java/org/eclipse/ditto/json/cbor/ByteBufferOutputStream.java
focal_class.identifier: ByteBufferOutputStream
focal_class.class_method_signature: ByteBufferOutputStream.ByteBufferOutputStream(final ByteBuffer destinationBuffer)
focal_class.full_signature:   ByteBufferOutputStream(final ByteBuffer destinationBuffer)
focal_class.identifier: ByteBufferOutputStream
focal_class.parameters: (final ByteBuffer destinationBuffer)
focal_class.signature:  ByteBufferOutputStream(final ByteBuffer destinationBuffer)
focal_class.class_method_signature: ByteBufferOutputStream.write(final int b)
focal_class.full_signature: @Override public void write(final int b)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final int b)
focal_class.return: void
focal_class.signature: void write(final int b)
focal_class.class_method_signature: ByteBufferOutputStream.write(final byte[] b, final int off, final int len)
focal_class.full_signature: @Override public void write(final byte[] b, final int off, final int len)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final byte[] b, final int off, final int len)
focal_class.return: void
focal_class.signature: void write(final byte[] b, final int off, final int len)
focal_class.superclass: extends OutputStream
focal_method.body: @Override
      public void write(final int b) {
          // super specifies to ignore everything except the lower 8 bits.
          destinationBuffer.put((byte) b);
      }
focal_method.class_method_signature: ByteBufferOutputStream.write(final int b)
focal_method.full_signature: @Override public void write(final int b)
focal_method.identifier: write
focal_method.invocations: put
focal_method.modifiers: @Override public
focal_method.parameters: (final int b)
focal_method.return: void
focal_method.signature: void write(final int b)