### Question:
SelectableStudyCharTableModel extends StudyCharTableModel { public ObservableList<Study> getSelectedStudiesModel() { return d_selectedStudiesList; } SelectableStudyCharTableModel(StudyListPresentation source, PresentationModelFactory pmf); ObservableList<Study> getAvailableStudies(); ObservableList<Study> getSelectedStudiesModel(); ModifiableHolder<Boolean> getSelectedStudyBooleanModel(Study s); @Override int getColumnCount(); @Override Class<?> getColumnClass(int c); @Override Object getValueAt(int rowIndex, int columnIndex); @Override String getColumnName(int columnIndex); @Override boolean isCellEditable(int rowIndex, int columnIndex); @Override void setValueAt(Object newValue, int rowIndex, int columnIndex);  }### Answer:
@Test public void testGetSelectedStudiesModel() { assertEquals(d_studies, d_model.getSelectedStudiesModel()); for (int i = 0; i < d_studies.size(); ++i) { if (i != 1) { d_model.getSelectedStudyBooleanModel(d_studies.get(i)).setValue(false); } } assertEquals(Collections.singletonList(d_studies.get(1)), d_model.getSelectedStudiesModel()); }