@Test
public void testReadObjectClassWithNullContextName() throws Exception {

	Class<?> clazz = getClass();
	String className = clazz.getName();
	String contextName = StringPool.NULL;
	ByteBuffer byteBuffer = ByteBuffer.allocate(
		className.length() + contextName.length() + 11);
	byteBuffer.put(SerializationConstants.TC_CLASS);
	byteBuffer.put((byte)1);
	byteBuffer.putInt(contextName.length());
	byteBuffer.put(contextName.getBytes(StringPool.UTF8));
	byteBuffer.put((byte)1);
	byteBuffer.putInt(className.length());
	byteBuffer.put(className.getBytes(StringPool.UTF8));
	byteBuffer.flip();
	Deserializer deserializer = new Deserializer(byteBuffer);
	Class<?> readClass = deserializer.readObject();
	Assert.assertSame(clazz, readClass);
}