</BUG>
}
@Test
public void testGet_Plain() throws RestException {
<BUG>final Response response = new Rest().url("https://httpbin.org/get").execute();
</BUG>
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));

import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class RestTests {
@Test(expected = RestException.class)
public void testFailsOnNoUrl() throws RestException {
new Rest().get();
}
@Test
public void testGet_Plain() throws RestException {
final Response response = new Rest().url("https://httpbin.org/get").get();
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));
