@Test
public void testRedecorateComboBox() {

    AutoCompleteDecorator.decorate(combo);
    Component editor = combo.getEditor().getEditorComponent();
    
    int expectedFocusListenerCount = editor.getFocusListeners().length;
    int expectedKeyListenerCount = editor.getKeyListeners().length;
    int expectedPropListenerCount = combo.getPropertyChangeListeners("editor").length;
    int expectedActionListenerCount = combo.getActionListeners().length;
    
    
    AutoCompleteDecorator.decorate(combo);
    editor = combo.getEditor().getEditorComponent();
    
    assertThat(editor.getFocusListeners().length, is(expectedFocusListenerCount));
    assertThat(editor.getKeyListeners().length, is(expectedKeyListenerCount));
    assertThat(combo.getPropertyChangeListeners("editor").length, is(expectedPropListenerCount));
    assertThat(combo.getActionListeners().length, is(expectedActionListenerCount));
}