public static KeyManagementServiceClient createKeyManagementServiceClient()
      throws GeneralSecurityException {
    try {
      KeyManagementServiceStubSettings.Builder kmsSettingsBuilder =
          KeyManagementServiceStubSettings.newBuilder();
      KeyManagementServiceStubSettings kmsSettings = kmsSettingsBuilder.build();
      GrpcKeyManagementServiceStub grpcKmsStub = GrpcKeyManagementServiceStub.create(kmsSettings);
      return KeyManagementServiceClient.create(grpcKmsStub);
    } catch (Exception e) {
      throw new GeneralSecurityException("creation of FakeKeyManagementServiceClient failed", e);
    }
  }
A partial, fake implementation of {@link com.google.cloud.kms.v1.KeyManagementServiceClient}.
java_src/src/main/java/com/google/crypto/tink/integration/gcpkms/FakeKeyManagementServiceClient.java