NullFieldFactory implements FieldFactory<Object> { @Override public Object newInstance(int uniqueId) { return null; }  @Override Object newInstance(int uniqueId);  }
@Test(invocationCount = 10) public void newInstance() { NullFieldFactory factory = new NullFieldFactory(); assertNull(factory.newInstance(RandomUtils.nextInt(0, Integer.MAX_VALUE))); }