@Test
public void testGetCopy()
{
BinaryValue bv = new BinaryValue( ( byte[] ) null );
assertNull( bv.getValue() );
bv = new BinaryValue( StringConstants.EMPTY_BYTES );
assertNotNull( bv.getValue() );
assertTrue( Arrays.equals( StringConstants.EMPTY_BYTES, bv.getValue() ) );
bv = new BinaryValue( BYTES1 );
byte[] copy = bv.getValue();
assertTrue( Arrays.equals( BYTES1, copy ) );
bv.getReference()[0] = 0x11;
assertTrue( Arrays.equals( BYTES1, copy ) );
assertTrue( Arrays.equals( BYTES_MOD, bv.getBytes() ) );
}