@Test
public void testJSONFilterCode_logTimeOnly() throws Exception {

  LOG.info("testJSONFilterCode_logTimeOnly()");
  init(new HashMap<String, Object>());
  mockOutputManager.write(EasyMock.capture(capture), EasyMock.anyObject(InputMarker.class));
  EasyMock.expectLastCall();
  EasyMock.replay(mockOutputManager);
  Date d = new Date();
  DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
  sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
  String dateString = sdf.format(d);
  filterJson.apply("{ logtime: '" + d.getTime() + "', some_field: 'abc' }", new InputMarker(null, null, 0));
  EasyMock.verify(mockOutputManager);
  Map<String, Object> jsonParams = capture.getValue();
  assertEquals("Incorrect decoding: log time", dateString, jsonParams.remove("logtime"));
  assertEquals("Incorrect decoding: in memory timestamp", d.getTime(), jsonParams.remove(LogFeederConstants.IN_MEMORY_TIMESTAMP));
  assertEquals("Incorrect decoding: some field", "abc", jsonParams.remove("some_field"));
  assertTrue("jsonParams are not empty!", jsonParams.isEmpty());
}