### Question:
SessionSerializationUtils { public Session deserialize(byte[] session) throws ClassNotFoundException, IOException { if (session == null) { return null; } ByteArrayInputStream bytes = null; ObjectInputStream in = null; Context context = this.manager.getContext(); ClassLoader oldThreadContextCL = context.bind(Globals.IS_SECURITY_ENABLED, null); try { bytes = new ByteArrayInputStream(session); in = new ObjectInputStream(bytes) { @Override protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException { try { return Class.forName(desc.getName(), false, Thread.currentThread().getContextClassLoader()); } catch (ClassNotFoundException cnfe) { return super.resolveClass(desc); } } }; StandardSession standardSession = (StandardSession) this.manager.createEmptySession(); standardSession.readObjectData(in); return standardSession; } finally { closeQuietly(in, bytes); context.unbind(Globals.IS_SECURITY_ENABLED, oldThreadContextCL); } } SessionSerializationUtils(Manager manager); Session deserialize(byte[] session); byte[] serialize(Session session);  }### Answer:
@Test public void testNullData() throws IOException, ClassNotFoundException { assertNull(this.sessionSerializationUtils.deserialize(null)); }