} catch (Exception ex) {
assertTrue(ex instanceof ResourceNotFoundException, "Exception should be a ResourceNotFoundException");
assertEquals(ex.getMessage(), NOT_FOUND);
} finally {
api.close();
server.shutdown();
}
}
public void testInternalServerError() throws Exception {
MockWebServer server = mockWebServer();