ExistsNode implements Node { public String getProperty() { return property; } ExistsNode(final String property); String getProperty(); @Override void accept(PredicateVisitor predicateVisitor); @Override @SuppressWarnings("squid:MethodCyclomaticComplexity") boolean equals(final Object o); @Override @SuppressWarnings("squid:S109") int hashCode(); @Override String toString();  }
@Test public void constructorSuccess() { final ExistsNode existsNode = new ExistsNode("propertyName"); assertThat(existsNode.getProperty()).isEqualTo("propertyName"); }