@Category(IntegrationTest.class)
public class BehaviorsTest extends WicketApplicationTest {
@Test
public void removeRemovesBehavior() {
final Behavior behavior = new CssClassNameAppender("classname");
final Component component = new WebMarkupContainer("container");
component.add(behavior);
assertThat(Behaviors.remove(component, behavior), is(equalTo(true)));
assertThat(component.getBehaviors().size(), is(equalTo(0)));