### Question:
RequestMethod { public Set<Constraint> getOwsConstraints() { if (owsConstraints == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(owsConstraints); } @Deprecated  RequestMethod(final OnlineResource onlineResouce, final String[] constraints);  RequestMethod(final OnlineResource onlineResource, final Set<Constraint> constraints);  RequestMethod(final OnlineResource onlineResource); abstract String toXML(); @Deprecated String[] getConstraints(); OnlineResource getOnlineResource(); Set<Constraint> getOwsConstraints(); boolean addOwsConstraint(final Constraint owsConstraint); boolean setOwsConstraints(final Set<Constraint> owsConstraints); @Override String toString();  }### Answer:
@Test public void shouldReturnOwsConstraints() { final Set<Constraint> constraints = new HashSet<Constraint>(2); final Constraint c1 = new Constraint("constraint-1", "value-1-1","value-1-2"); final Constraint c2 = new Constraint("constraint-2", "value-2-1","value-2-2"); constraints.add(c1); constraints.add(c2); final RequestMethodSeam seam = new RequestMethodSeam(null, constraints); assertThat(seam.getOwsConstraints(), hasSize(2)); assertThat(seam.getOwsConstraints(), is(hasItem(c1))); assertThat(seam.getOwsConstraints(), is(hasItem(c2))); }