SelectOption implements Comparable<SelectOption> { public String getText() { return text; } SelectOption(String value, String text); String getText(); String getValue(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(SelectOption other); @Override String toString();  }
@Test public void testGetText() { assertThat(instance.getText(), equalTo(text)); }