@Test
void test_validate_duplicate_probe() throws ConfigurationException {

    String probeNetworkInterfacePrimaryPrivateIp = "127.0.0.1";
    AzureProbeMonitorConfiguration azureProbeMonitorConfiguration =
        new AzureProbeMonitorConfiguration(azureConfiguration,
            nvaConfigurations, routeTables, publicIpAddresses,
            null, null, null);
    AzureClient azureClient = mock(AzureClient.class);
    when(azureClient.checkExistenceById(anyString()))
        .thenReturn(true);
    NetworkInterface probeNetworkInterface = mock(NetworkInterface.class);
    when(probeNetworkInterface.primaryPrivateIp())
        .thenReturn(probeNetworkInterfacePrimaryPrivateIp);
    when(azureClient.getNetworkInterfaceById(anyString()))
        .thenReturn(probeNetworkInterface);
    Assertions.assertThrows(ConfigurationException.class,
        () -> azureProbeMonitorConfiguration.validate(azureClient));
}