@Test
public void testRPCRuntimeExceptionUnwrapping() {

  String message = "RPCRuntimeExceptionUnwrapping";
  RuntimeException re = new NullPointerException(message);
  ServiceException se = new ServiceException(re);
  Throwable t = null;
  try {
    RPCUtil.unwrapAndThrowException(se);
  }  catch (Throwable thrown) {
    t = thrown;
  }
  Assert.assertTrue(NullPointerException.class.isInstance(t));
  Assert.assertTrue(t.getMessage().contains(message));
}