@Test
public void addRequestTimeToJsonMap() throws Exception {

    Map<String, Object> map = new LinkedHashMap<String, Object>();
    JsonLayout jsonLayout = new JsonLayout();
    jsonLayout.addRequestTime(10001, map);
    assertThat(map.size(), is(1));
    assertThat(map, hasKey(REQUESTTIME_ATTR_NAME));
    assertEquals("10.001", map.get(REQUESTTIME_ATTR_NAME));
    Map<String, Object> map2 = new LinkedHashMap<String, Object>();
    JsonLayout jsonLayout2 = new JsonLayout();
    jsonLayout2.addRequestTime(-1, map2);
    assertThat(map2.size(), is(0));
}