LikeConstraint implements Constraint { @Override public Type getType() { return Type.LIKE; } LikeConstraint(String lhs, String rhsRegex); boolean isConstraintOnHostName(); boolean matchesHostName(String hostname); boolean matchesSlaveAttributes(Collection<Attribute> attributes); @Override Type getType(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testGetType() throws Exception { assertEquals("LIKE", constraintOne.getType().toString()); assertEquals("LIKE", constraintTwo.getType().toString()); }