// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/binding/HdfsBindingClientFactory.java
// public class HdfsBindingClientFactory {
//   public static HdfsBindingClient create(Credentials credentials, String userspacePathTemplate){
//     return new HdfsBindingClient(credentials, userspacePathTemplate);
//   }
// }
// 
// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/provisioning/HdfsProvisioningClientFactory.java
// public class HdfsProvisioningClientFactory {
//   public static HdfsProvisioningClient create(HdfsClient hdfsClient, HdfsClient encryptedHdfsClient,
//       String userspacePathTemplate) {
//     return new HdfsProvisioningClient(hdfsClient, encryptedHdfsClient, userspacePathTemplate);
//   }
// }


import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.*;
import static org.trustedanalytics.servicebroker.test.cloudfoundry.CfModelsFactory.getServiceInstance;
import java.io.IOException;
import java.util.Map;
import java.util.Optional;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsAction;
import org.apache.hadoop.fs.permission.FsPermission;
import org.cloudfoundry.community.servicebroker.exception.ServiceBrokerException;
import org.cloudfoundry.community.servicebroker.model.ServiceInstance;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.trustedanalytics.cfbroker.store.hdfs.service.HdfsClient;
import org.trustedanalytics.servicebroker.hdfs.plans.binding.HdfsBindingClientFactory;
import org.trustedanalytics.servicebroker.hdfs.plans.provisioning.HdfsProvisioningClientFactory;
import com.google.common.collect.ImmutableMap;
/**
 * Copyright (c) 2015 Intel Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.trustedanalytics.servicebroker.hdfs.plans;





@RunWith(MockitoJUnitRunner.class)
public final class HdfsPlanEncryptedTest extends HdfsPlanTestBase {

  private static final FsPermission FS_PERMISSION = new FsPermission(FsAction.ALL, FsAction.ALL,
      FsAction.NONE);

  private HdfsPlanEncrypted planUnderTest;

  @Mock
  private HdfsClient hdfsClient;

  @Mock
  private HdfsClient encryptedHdfsClient;

  @Before
  public void setup() {
    planUnderTest = new HdfsPlanEncrypted(
        HdfsProvisioningClientFactory.create(hdfsClient, encryptedHdfsClient, USERSPACE_PATH_TEMPLATE),
// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/binding/HdfsBindingClientFactory.java
// public class HdfsBindingClientFactory {
//   public static HdfsBindingClient create(Credentials credentials, String userspacePathTemplate){
//     return new HdfsBindingClient(credentials, userspacePathTemplate);
//   }
// }
// 
// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/provisioning/HdfsProvisioningClientFactory.java
// public class HdfsProvisioningClientFactory {
//   public static HdfsProvisioningClient create(HdfsClient hdfsClient, HdfsClient encryptedHdfsClient,
//       String userspacePathTemplate) {
//     return new HdfsProvisioningClient(hdfsClient, encryptedHdfsClient, userspacePathTemplate);
//   }
// }


// Path: src/test/java/org/trustedanalytics/servicebroker/hdfs/plans/HdfsPlanEncryptedTest.java
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.*;
import static org.trustedanalytics.servicebroker.test.cloudfoundry.CfModelsFactory.getServiceInstance;
import java.io.IOException;
import java.util.Map;
import java.util.Optional;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsAction;
import org.apache.hadoop.fs.permission.FsPermission;
import org.cloudfoundry.community.servicebroker.exception.ServiceBrokerException;
import org.cloudfoundry.community.servicebroker.model.ServiceInstance;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.trustedanalytics.cfbroker.store.hdfs.service.HdfsClient;
import org.trustedanalytics.servicebroker.hdfs.plans.binding.HdfsBindingClientFactory;
import org.trustedanalytics.servicebroker.hdfs.plans.provisioning.HdfsProvisioningClientFactory;
import com.google.common.collect.ImmutableMap;

/**
 * Copyright (c) 2015 Intel Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.trustedanalytics.servicebroker.hdfs.plans;





@RunWith(MockitoJUnitRunner.class)
public final class HdfsPlanEncryptedTest extends HdfsPlanTestBase {

  private static final FsPermission FS_PERMISSION = new FsPermission(FsAction.ALL, FsAction.ALL,
      FsAction.NONE);

  private HdfsPlanEncrypted planUnderTest;

  @Mock
  private HdfsClient hdfsClient;

  @Mock
  private HdfsClient encryptedHdfsClient;

  @Before
  public void setup() {
    planUnderTest = new HdfsPlanEncrypted(
        HdfsProvisioningClientFactory.create(hdfsClient, encryptedHdfsClient, USERSPACE_PATH_TEMPLATE),
        HdfsBindingClientFactory.create(getInputCredentials(), USERSPACE_PATH_TEMPLATE));