### Question:
IovisorModuleManager implements AutoCloseable { public boolean addIovisorModule(IovisorModuleInstance iovisorModuleInstance, LogicalDatastoreType dataStoreType) { if (!isValidIovisorModuleInstance(iovisorModuleInstance)) return false; WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); wTx.put(dataStoreType, IovisorIidFactory.iovisorModuleInstanceIid(new IovisorModuleInstanceKey(iovisorModuleInstance.getId())), iovisorModuleInstance); return DataStoreHelper.submitToDs(wTx); } IovisorModuleManager(DataBroker passedDataBroker); boolean addProvisionedIovisorModule(IovisorModuleInstance iovisorModuleInstance); boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId); boolean addIovisorModule(IovisorModuleInstance iovisorModuleInstance, LogicalDatastoreType dataStoreType); IovisorModuleInstance getActiveIovisorModule(IovisorModuleId iovisorModuleId); IovisorModuleInstance getProvisionedIovisorModule(IovisorModuleId iovisorModuleId); IovisorModuleInstances getIovisorModules(ReadOnlyTransaction rTx, LogicalDatastoreType dataStoreType); List<IovisorModuleInstanceId> getIovisorModulesByTenantByEpg(TenantId tenantId, EndpointGroupId epgId); @Override void close();  }### Answer:
@Test public void addIovisorInstanceTest() { Assert.assertTrue( iovisorModuleManager.addIovisorModule(iovisorModuleInstance1, LogicalDatastoreType.CONFIGURATION)); Assert.assertTrue( iovisorModuleManager.addIovisorModule(iovisorModuleInstance1, LogicalDatastoreType.OPERATIONAL)); Assert.assertFalse( iovisorModuleManager.addIovisorModule(badIovisorModuleInstance1, LogicalDatastoreType.CONFIGURATION)); Assert.assertFalse( iovisorModuleManager.addIovisorModule(badIovisorModuleInstance1, LogicalDatastoreType.OPERATIONAL)); }