Add test case for #876: NPE when a factory method is not static
2 files changed