AddTimestampFilter extends AbstractFilter<ObjectNode, ObjectNode> { @Override protected ObjectNode doFilter(ObjectNode node) throws FilterException { try { node.put(DEFAULT_KEY_NAME, LocalDateTime.now().truncatedTo(ChronoUnit.SECONDS).toString()); } catch (Exception ex) { throw new FilterException("Unable to add timestamp to object node", ex); } return node; } @Inject  AddTimestampFilter(
			@Assisted DataSource source,
			MetricRegistry registry);  static final String DEFAULT_KEY_NAME; }
@Test(expected = FilterException.class) public void testFilterException() throws FilterException { new AddTimestampFilter(source, registry).doFilter(null); }