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

@Test(expected = NullPointerException.class)
public void function8Fail() throws Exception {
    Function8 function8 = null;
    Functions.toFunction(function8);
}