@Test
public void newInstance () {

  val value = new byte[] { 1, 2, 3 };
  val bytes = Bytes.resizableArray()
      .write1B(BINARY.getCode())
      .write4B(value.length)
      .writeNB(value)
      .arrayCopy();
  ErlangBinary binary = ErlangTerm.newInstance(wrappedBuffer(bytes));
  assertThat(binary).isNotNull();
  SoftAssertions.assertSoftly(softly -> {
    softly.assertThat(binary.isBinary())
        .isTrue();
    softly.assertThat(binary.asBinary())
        .isEqualTo(value);
  });
}