- DataObject readList1 = baDataService.readConfigurationData(LIST1_INSTANCE_ID_BA);
- assertNotNull("Readed table should not be nul.", readList1);
- assertTrue(readList1 instanceof List1);
+ Optional<List1> readList1 = dataBroker.newReadOnlyTransaction().read(LogicalDatastoreType.OPERATIONAL,
+ LIST1_INSTANCE_ID_BA).get(1000, TimeUnit.MILLISECONDS);
+ assertTrue(readList1.isPresent());