@Override
  public boolean writeRefOrNull(MemoryBuffer buffer, Object obj) {
    if (obj == null) {
      buffer.writeByte(Fury.NULL_FLAG);
      return true;
    } else {
      buffer.writeByte(Fury.NOT_NULL_VALUE_FLAG);
      return false;
    }
  }
@Test
  public void testWriteRefOrNull() {
    NoRefResolver referenceResolver = new NoRefResolver();
    MemoryBuffer buffer = MemoryBuffer.newHeapBuffer(32);
    assertTrue(referenceResolver.writeRefOrNull(buffer, null));
    assertFalse(referenceResolver.writeRefOrNull(buffer, new Object()));
    Object o = new Object();
    assertFalse(referenceResolver.writeRefOrNull(buffer, o));
    assertFalse(referenceResolver.writeRefOrNull(buffer, o));
    assertFalse(referenceResolver.writeNullFlag(buffer, o));
    assertTrue(referenceResolver.writeNullFlag(buffer, null));
  }