### Question:
OzoneKMSUtil { public static KeyProvider getKeyProvider(final ConfigurationSource conf, final URI serverProviderUri) throws IOException{ if (serverProviderUri == null) { throw new IOException("KMS serverProviderUri is not configured."); } return KMSUtil.createKeyProviderFromUri( LegacyHadoopConfigurationSource.asHadoopConfiguration(conf), serverProviderUri); } private  OzoneKMSUtil(); static KeyProvider.KeyVersion decryptEncryptedDataEncryptionKey(
      FileEncryptionInfo feInfo, KeyProvider keyProvider); static Text getKeyProviderMapKey(URI namespaceUri); static String bytes2String(byte[] bytes); static URI getKeyProviderUri(UserGroupInformation ugi,
      URI namespaceUri, String kmsUriSrv, ConfigurationSource conf); static KeyProvider getKeyProvider(final ConfigurationSource conf,
      final URI serverProviderUri); static CryptoProtocolVersion getCryptoProtocolVersion(
      FileEncryptionInfo feInfo); static void checkCryptoProtocolVersion(
          FileEncryptionInfo feInfo); static CryptoCodec getCryptoCodec(ConfigurationSource conf,
      FileEncryptionInfo feInfo);  }### Answer:
@Test public void getKeyProvider() { try { OzoneKMSUtil.getKeyProvider(config, null); fail("Expected IOException."); } catch (IOException ioe) { assertEquals(ioe.getMessage(), "KMS serverProviderUri is " + "not configured."); } }