### Question:
CustomGroupItem extends Anchor { public void setActive(boolean active) { if (active) { addStyleName("active"); } else { removeStyleName("active"); } } CustomGroupItem(final String text,
                           final IconType icon,
                           final Command command); void setActive(boolean active);  }### Answer:
@Test public void testActive() { customGroupItem.setActive( true ); assertTrue( customGroupItem.getStyleName().contains( "active" ) ); customGroupItem.setActive( false ); assertTrue( !customGroupItem.getStyleName().contains( "active" ) ); }