@Test
public void testExceptionsHandler() {

  Server.ExceptionsHandler handler = new Server.ExceptionsHandler();
  handler.addTerseExceptions(IOException.class);
  handler.addTerseExceptions(RpcServerException.class, IpcException.class);
  assertTrue(handler.isTerse(IOException.class));
  assertTrue(handler.isTerse(RpcServerException.class));
  assertTrue(handler.isTerse(IpcException.class));
  assertFalse(handler.isTerse(RpcClientException.class));
}