final Pointer<Object> allocatedPointer2 = mms.allocate( Object.class, allocatedPayload2.length, -1, -1 );
Assert.assertNotNull( allocatedPointer2 );
final MemoryBuffer buffer2 = allocatedPointer2.getMemoryBuffer();
Assert.assertNotNull( buffer2 );
Assert.assertEquals( size2, buffer2.capacity() );
buffer2.writeBytes( allocatedPayload2 );
Assert.assertEquals( new String( allocatedPayload2 ), new String( mms.retrieve( allocatedPointer2 ) ) );
// Ensure the new allocation has not overwritten other data
Assert.assertEquals( new String( payload2 ), new String( mms.retrieve( pointer2 ) ) );
Assert.assertEquals( new String( payload3 ), new String( mms.retrieve( pointer3 ) ) );