### Question:
EndpointManager implements AutoCloseable { public void processEndpoint(EndpointL3 endpoint) { IovisorModuleAugmentation iomAug = endpoint.getAugmentation(IovisorModuleAugmentation.class); IovisorModuleId iovisorModuleId = new IovisorModuleId(iomAug.getUri().getValue()); IovisorModuleInstance iovisorModuleInstance = iovisorModuleManager.getActiveIovisorModule(iovisorModuleId); if (iovisorModuleInstance == null) { iovisorModuleInstance = new IovisorModuleInstanceBuilder().setId(iovisorModuleId).setUri(iomAug.getUri()).build(); if (iovisorModuleManager.addProvisionedIovisorModule(iovisorModuleInstance)) { LOG.info("Provisioned IovisorModule {}}", iovisorModuleInstance.getId()); } else { LOG.error( "Error provisioning IovisorModule {} as part of processing Endpoint Tenant: {} L3C: {} IPAddress: {}", iovisorModuleInstance.getId(), endpoint.getTenant(), endpoint.getL3Context(), endpoint.getIpAddress()); return; } if (iovisorModuleManager.addActiveIovisorModule(iovisorModuleInstance.getId())) { LOG.info("Activated IovisorModule {} as part of processing Endpoint Tenant: {} L3C: {} IPAddress: {}", iovisorModuleInstance.getId().getValue(), endpoint.getTenant().getValue(), endpoint.getL3Context().getValue(), endpoint.getIpAddress().getValue()); } else { LOG.error( "Error provisioning IovisorModule {} as part of processing Endpoint Tenant: {} L3C: {} IPAddress: {}", iovisorModuleInstance.getId().getValue(), endpoint.getTenant().getValue(), endpoint.getL3Context().getValue(), endpoint.getIpAddress().getValue()); return; } } if (addIovisorResolvedEndpoint(endpoint)) { LOG.info("Processed Endpoint Tenant {} L3Context: {} 1st IP Address: {}", endpoint.getTenant().getValue(), endpoint.getL3Context().getValue(), endpoint.getIpAddress().getValue()); return; } else { LOG.error( "Could not add to IovisorResolvedEndpoint store following Endpoint Tenant {} L3Context: {} 1st IP Address: {}", endpoint.getTenant().getValue(), endpoint.getL3Context().getValue(), endpoint.getIpAddress().getValue()); return; } } EndpointManager(DataBroker passedDataBroker, EpRendererAugmentationRegistry epRendererAugmentationRegistry); IovisorModuleManager getIovisorModuleManager(); void processEndpoint(EndpointL3 endpoint); @Override void close();  }### Answer:
@Test public void processEndpointTest() { IovisorModuleId iovisorModuleId = new IovisorModuleId(endpoint1.getAugmentation(IovisorModuleAugmentation.class).getUri().getValue()); IovisorModuleInstance iovisorModule = iovisorModuleManager.getActiveIovisorModule(iovisorModuleId); Assert.assertNull(iovisorModule); endpointManager.processEndpoint(endpoint1); iovisorModule = iovisorModuleManager.getActiveIovisorModule(iovisorModuleId); Assert.assertEquals(iovisorModuleId, iovisorModule.getId()); }