@@ -0,0 +1,1886 @@
+/*%0A * Copyright 2020 Google LLC. All Rights Reserved.%0A *%0A *  Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use this file except%0A * in compliance with the License. You may obtain a copy of the License at%0A *%0A *  http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *  Unless required by applicable law or agreed to in writing, software distributed under the%0A * License is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either%0A * express or implied. See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.google.cloud.hadoop.fs.gcs.contract;%0A%0Aimport com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem;%0Aimport com.google.cloud.hadoop.gcsio.integration.GoogleCloudStorageTestHelper.TestBucketHelper;%0Aimport java.util.concurrent.atomic.AtomicReference;%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.apache.hadoop.fs.contract.AbstractContractGetFileStatusTest;%0Aimport org.apache.hadoop.fs.contract.AbstractFSContract;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0A%0A@RunWith(JUnit4.class)%0Apublic class TestGoogleContractGetFileStatus extends AbstractContractGetFileStatusTest %7B%0A%0A  private static final TestBucketHelper TEST_BUCKET_HELPER =%0A      new TestBucketHelper(GoogleContract.TEST_BUCKET_NAME_PREFIX);%0A%0A  private static final AtomicReference%3CGoogleHadoopFileSystem%3E fs = new AtomicReference%3C%3E();%0A%0A  @Before%0A  public void before() %7B%0A    fs.compareAndSet(null, (GoogleHadoopFileSystem) getFileSystem());%0A  %7D%0A%0A  @AfterClass%0A  public static void cleanup() throws Exception %7B%0A    TEST_BUCKET_HELPER.cleanup(fs.get().getGcsFs().getGcs());%0A  %7D%0A%0A  @Override%0A  protected AbstractFSContract createContract(Configuration conf) %7B%0A    return new GoogleContract(conf, TEST_BUCKET_HELPER);%0A  %7D%0A%7D%0A

Add missing contract tests (#393)