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

@Test(expected = NullPointerException.class)
public void function3Fail() throws Exception {
    Function3 function3 = null;
    Functions.toFunction(function3);
}