public void testFailsOnNoUrl() throws RestException {
new Rest().execute();
}
@Test
public void testGet_Plain() throws RestException {
<BUG>final Response response = new Rest().url("https://httpbin.org/get").type(RequestType.GET).execute();
assertEquals(200, response.getStatus());</BUG>
assertEquals("application/json", response.getMimeType());
final JsonObject jsonObject = Json.parse(response.getBody()).asObject();
assertEquals("https://httpbin.org/get", jsonObject.getString("url", null));

public void testFailsOnNoUrl() throws RestException {
new Rest().execute();
}
@Test
public void testGet_Plain() throws RestException {
final Response response = new Rest().url("https://httpbin.org/get").execute();
assertEquals(200, response.getStatus());
assertEquals("application/json", response.getMimeType());
final JsonObject jsonObject = Json.parse(response.getBody()).asObject();
assertEquals("https://httpbin.org/get", jsonObject.getString("url", null));
