### Question:
KeyDataUtil { public static boolean isAzure(KeyData keyData) { return Optional.of(keyData) .filter(k -> Objects.nonNull(k.getAzureVaultPublicKeyId())) .filter(k -> Objects.nonNull(k.getAzureVaultPrivateKeyId())) .isPresent(); } private  KeyDataUtil(); static Class<? extends ConfigKeyPair> getKeyPairTypeFor(KeyData keyData); static boolean isLocked(KeyData keyData); static boolean isDirect(KeyData keyData); static boolean isInline(KeyData keyData); static boolean isAzure(KeyData keyData); static boolean isHashicorp(KeyData keyData); static boolean isAws(KeyData keyData); static boolean isFileSystem(KeyData keyData); static boolean isUnsupported(KeyData keyData); static ConfigKeyPair unmarshal(final KeyData keyData, final KeyEncryptor keyEncryptor); static KeyData marshal(final ConfigKeyPair keyPair);  }### Answer:
@Test public void isAzure() { KeyData keyData = new KeyData(); keyData.setAzureVaultPrivateKeyId("AzureVaultPrivateKeyId"); keyData.setAzureVaultPublicKeyId("AzureVaultPublicKeyId"); assertThat(KeyDataUtil.isAzure(keyData)).isTrue(); }