@Test
public void testOptional() throws Exception {

    assertEquals("Should get 'localhost'", PropertyUtil.getOptional("redisHostname"), "localhost");
    assertEquals("Should get '10'", PropertyUtil.getOptional("workerCount"), "10");
    assertEquals("Should get <null>", PropertyUtil.getOptional("non-existing-property"), null);
}