@SuppressWarnings({"unchecked", "rawtypes"})

@Test(expected = NullPointerException.class)
public void function4Fail() throws Exception {
    Function4 function4 = null;
    Functions.toFunction(function4);
}