public void testDeserialize() throws Exception {
Exception ex = new Exception("test exception");
SerializedExceptionPBImpl pb = new SerializedExceptionPBImpl();
try {
pb.deSerialize();
Assert.fail("deSerialze should throw YarnRuntimeException");
} catch (YarnRuntimeException e) {
Assert.assertEquals(ClassNotFoundException.class,
e.getCause().getClass());
}