@Test
public void testRPCServiceExceptionUnwrapping() {

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