ContextImpl implements Context, Constants { @Override public boolean definesProperty(@NotNull Tree parent, @NotNull PropertyState property) { return definesTree(parent); } private  ContextImpl(); @Override boolean definesProperty(@NotNull Tree parent, @NotNull PropertyState property); @Override boolean definesContextRoot(@NotNull Tree tree); @Override boolean definesTree(@NotNull Tree tree); @Override boolean definesLocation(@NotNull TreeLocation location); @Override boolean definesInternal(@NotNull Tree tree);  }
@Test public void testDefinesProperty() { PropertyState anyProperty = mock(PropertyState.class); assertTrue(CTX.definesProperty(mockTree(REP_PRINCIPAL_POLICY, NT_REP_PRINCIPAL_POLICY, true), anyProperty)); assertTrue(CTX.definesProperty(mockTree(REP_RESTRICTIONS, NT_REP_RESTRICTIONS, true), anyProperty)); assertTrue(CTX.definesProperty(mockTree("anyEntry", NT_REP_PRINCIPAL_ENTRY, true), anyProperty)); }