@Test
public void addAddressTest() throws Exception {

    AddressObservationWriter addressObservationWriter = new AddressObservationWriter(dataService);
    addressObservationWriter.setTimestampUpdateInterval(20L);
    addressObservationWriter.addAddress(macAddress, ipAddress, realNcRef);
    verify(readTransaction, times(1)).read(any(LogicalDatastoreType.class), any(InstanceIdentifier.class));
    verify(readTransaction, times(1)).close();
    verify(writeTransaction, times(1)).merge(any(LogicalDatastoreType.class), any(InstanceIdentifier.class),
            any(AddressCapableNodeConnector.class));
    verify(writeTransaction, times(1)).submit();
}