LoggingKlvHandler implements KlvHandler { @Override public void accept(KlvDataElement klvDataElement) { LOGGER.debug( "unhandled klv data element: name = {} value ={}", klvDataElement.getName(), klvDataElement); }  @Override String getAttributeName(); @Override Optional<Attribute> asAttribute(); @Override void accept(KlvDataElement klvDataElement); @Override void reset();  }
@Test public void testAccept() throws KlvDecodingException { loggingKlvHandler.accept(KlvUtilities.createTestFloat("name", 1)); assertThat(loggingKlvHandler.asAttribute().isPresent(), is(false)); }