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

@Test(expected = NullPointerException.class)
public void function6Fail() throws Exception {
    Function6 function6 = null;
    Functions.toFunction(function6);
}