}
public void testFrom_errorEmptyContentButWithJsonContentType() throws Exception {
HttpTransport transport = new ErrorTransport(null, Json.MEDIA_TYPE);
HttpRequest request =
transport.createRequestFactory().buildGetRequest(HttpTesting.SIMPLE_GENERIC_URL);
request.setThrowExceptionOnExecuteError(false);
HttpResponse response = request.execute();
GoogleJsonResponseException ge =
GoogleJsonResponseException.from(GoogleJsonErrorTest.FACTORY, response);
assertNull(ge.getDetails());