public class TestSerializedExceptionPBImpl {
@Test
public void testSerializedException() throws Exception {
SerializedExceptionPBImpl orig = new SerializedExceptionPBImpl();
orig.init(new Exception("test exception"));
SerializedExceptionProto proto = orig.getProto();
SerializedExceptionPBImpl deser = new SerializedExceptionPBImpl(proto);
Assert.assertEquals(orig, deser);
Assert.assertEquals(orig.getMessage(), deser.getMessage());
Assert.assertEquals(orig.getRemoteTrace(), deser.getRemoteTrace());
Assert.assertEquals(orig.getCause(), deser.getCause());