@Test
public void testShowAttributeSelectorPopup() {

    final RuleModel model = mock(RuleModel.class);
    final boolean lockLHS = false;
    final boolean lockRHS = true;
    doReturn(model).when(ruleModeller).getModel();
    doReturn(lockLHS).when(ruleModeller).lockLHS();
    doReturn(lockRHS).when(ruleModeller).lockRHS();
    addAttributeWidget.init(ruleModeller);
    addAttributeWidget.showAttributeSelectorPopup();
    verify(guidedRuleAttributeSelectorPopup).init(eq(model),
                                                  eq(lockLHS),
                                                  eq(lockRHS),
                                                  commandArgumentCaptor.capture());
    commandArgumentCaptor.getValue().execute();
    verify(ruleModeller).refreshWidget();
}