@ClassRule
public static RestxServerRule server = new RestxServerRule();
@Test
public void should_access_keys() throws Exception {
HttpRequest httpRequest = server.client().GET(
"/api/settings/key1");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("value1");
httpRequest = server.client().GET(
"/api/settings/key2");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("value2");
httpRequest = server.client().GET(
"/api/settings/key3");
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("MyValue3");
}