@Test
public void getRpcDocument_internalServerError() throws Exception {

  when(rpcRequest.execute()).thenThrow(new IOException());
  try {
    provider.getRpcDocument(REWRITTEN_ROOT, NAME, V1);
    fail("expected InternalServerErrorException");
  } catch (InternalServerErrorException e) {
    // expected
  }
}