JFieldRef getOrAddNotFoundVar(JDefinedClass jclass) {
        jclass.field(PROTECTED | STATIC | FINAL, Object.class, NOT_FOUND_VALUE_FIELD,
                _new(jclass.owner()._ref(Object.class)));
        return jclass.staticRef(NOT_FOUND_VALUE_FIELD);
    }
@Test
    public void shouldAddNotFoundField() {
        JFieldRef var = rule.getOrAddNotFoundVar(type);
        assertThat(var, notNullValue());
    }