@Test(expected = IOException.class)
public void testValidateResponseFailNoErrorMessage() throws IOException {

  HttpURLConnection conn = Mockito.mock(HttpURLConnection.class);
  Mockito.when(conn.getResponseCode()).thenReturn(
      HttpURLConnection.HTTP_BAD_REQUEST);
  HttpExceptionUtils.validateResponse(conn, HttpURLConnection.HTTP_CREATED);
}