@Test
public void testDeserialization() throws Exception {

    ChannelHandlerContext ctx = mock(ChannelHandlerContext.class);
    FullHttpRequest request = mock(FullHttpRequest.class);
    IObject message = new DSObject("{\"hello\": \"world\"}");
    when(deserializeStrategy.deserialize(request)).thenReturn(message);
    when(request.method()).thenReturn(HttpMethod.POST);
    HttpRequestHandler requestHandler = new HttpRequestHandler(ScopeProvider.getCurrentScope(), null, null, null, mock(IUpCounter.class));
    IObject environment = requestHandler.getEnvironment(ctx, request);
    assertEquals(environment.getValue(new FieldName("message")), message);
}