@Test(expected = IllegalStateException.class)
public void testValidateMultiValueFunctionGenericTypes_IncorrectNumberOfTypeArgs() {

    Class<?>[] typeArgs = new Class<?>[] {Car.class, Integer.class};
    validateMultiValueFunctionGenericTypes(typeArgs, MultiValueFunction.class);
}