@Test(expected=SubstitutionException.class)
public void substituteWithPropertiesEmptyKeyThrowsException() throws Exception {

    // create test properties
    Properties props = new Properties();
    props.put("TEST1", "Hello World");
    // key is empty
    String string0 = StringUtil.substituteWithProperties("$ENV{}", "$ENV{", "}", props);
}