@Test
public void getSelectionWithNullParams() throws JIException {
OCInformationRegisterCollection collection = app.getInformationRegisterCollection();
OCInformationRegisterManager manager = collection.getInformationRegister("АдресныйКлассификатор");
OCInformationRegisterSelection selection = manager.select(null, null, null, null);
int stopFactor = 2;
while ((stopFactor--) != 0 && selection.next()) {
System.out.println("stop factor: " + stopFactor);
System.out.println("\tLineNumber: " + selection.getLineNumber());
System.out.println("\tТипАдресногоЭлемента: " + selection.getDimension("ТипАдресногоЭлемента"));
System.out.println("\tКодРегионаВКоде: " + selection.getDimension("КодРегионаВКоде"));
System.out.println("\tКодУлицыВКоде: " + selection.getDimension("КодУлицыВКоде"));
System.out.println("\tКод: " + selection.getDimension("Код") + " [" + selection.getDimension("Код").value().getClass().getName()+"]");
System.out.println("\tНаименование: " + selection.getResource("Наименование"));
System.out.println("\tИндекс: " + selection.getResource("Индекс"));
System.out.println("\tRecorder: " + selection.getRecorder());
}
//System.out.println("Selection size: " + selection.size()); // never call it
System.out.println("===============================================\n");
}