@Test
public void testDecodeDelete() throws Exception {

    DefaultResourceRequest decoded = decode(HttpMethod.DELETE, "/memory/people/bob");
    assertThat(decoded.requestType()).isEqualTo(RequestType.DELETE);
    assertThat(decoded.resourcePath().segments()).hasSize(3);
    assertThat(decoded.resourcePath().segments().get(0).name()).isEqualTo("memory");
    assertThat(decoded.resourcePath().segments().get(1).name()).isEqualTo("people");
    assertThat(decoded.resourcePath().segments().get(2).name()).isEqualTo("bob");
    //assertThat(decoded.mediaType()).isEqualTo(MediaType.JSON);
    assertThat(decoded.requestContext().pagination()).isNotNull();
    assertThat(decoded.requestContext().pagination()).isEqualTo(Pagination.NONE);
    assertThat(decoded.state()).isNull();
}