/** * A unit test for <code>objectToBytes()</code>, and <code>bytesToObject()</code> * * @exception Exception Description of Exception * @since */ public void testObjectToBytesBytesToObject() throws Exception { String test = "test"; String expected = "test"; String message = "Test " + "'" + test + "'"; byte[] bytes = IOUtils.objectToBytes(test); String result = (String) IOUtils.bytesToObject(bytes); assertEquals(message, expected, result); }