Verified that the correct exception is thrown for non-parameterless methods with branching and with null return value.