@Test public void addsAssignment() throws Exception { initController(); ToggleButton button = controller.getButtonForIdentity(unassignedIdentity); button.fire(); assertThat(getAssignedIdentities(), containsInAnyOrder(assignedIdentity, unassignedIdentity)); assertThat(button.isSelected(), is(true)); }
ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); } }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }  }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }  @Override void initialize(URL location, ResourceBundle resources); }
AssignContactController extends AbstractController implements Initializable { ToggleButton getButtonForIdentity(Identity identity) { return buttonByIdentity.get(identity); }  @Override void initialize(URL location, ResourceBundle resources); @FXML
    public ImageView keyIcon; @FXML
    public Label keyLabel; }