### Question:
AzureRegistrationTypeResolver { public RegistrationType getRegistrationType(NetworkDto networkDto) { if (networkDto.getAzure() != null && networkDto.getAzure().getNetworkId() != null && networkDto.getAzure().getResourceGroupName() != null) { return RegistrationType.EXISTING; } else { return RegistrationType.CREATE_NEW; } }  RegistrationType getRegistrationType(NetworkDto networkDto); RegistrationType getRegistrationType(EnvironmentNetworkRequest networkRequest);  }### Answer:
@Test void testNetworkDtoGetRegistrationTypeExisting() { NetworkDto networkDto = NetworkDto.builder() .withAzure(AzureParams.builder() .withNetworkId("NetworkId") .withResourceGroupName("ResourceGroupName") .build()) .build(); RegistrationType registrationType = azureRegistrationTypeResolver.getRegistrationType(networkDto); Assertions.assertEquals(RegistrationType.EXISTING, registrationType); }