ToPropertiesTuple extends KorypheFunction<Properties, PropertiesTuple> { @Override public PropertiesTuple apply(final Properties properties) { if (isNull(properties)) { return null; } return new PropertiesTuple(properties); }  @Override PropertiesTuple apply(final Properties properties);  }
@Test public void shouldReturnNullForNullValue() { final ToPropertiesTuple function = new ToPropertiesTuple(); final Object result = function.apply(null); assertNull(result); }
@Test public void shouldConvertAnPropertiesIntoAnPropertiesTuple() { final Properties properties = new Properties(); properties.put(TestPropertyNames.COUNT, 1); final ToPropertiesTuple function = new ToPropertiesTuple(); final Object result = function.apply(properties); assertEquals(new PropertiesTuple(properties), result); }