SortOrder { public boolean isDescending() { return descending; } SortOrder(String field);  SortOrder(String field, boolean descending); String getField(); boolean isDescending(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testIsDescending_1() throws Exception { SortOrder fixture = new SortOrder("", true); boolean result = fixture.isDescending(); assertEquals(true, result); }
@Test public void testIsDescending_2() throws Exception { SortOrder fixture = new SortOrder("", false); boolean result = fixture.isDescending(); assertEquals(false, result); }