// /*
//  * Copyright (C) 2019 Google LLC
//  *
//  * 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 com.google.cloud.teleport.v2.templates;
//
// import static org.junit.Assert.assertEquals;
// import static org.mockito.Mockito.mock;
//
// import com.google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient;
// import com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions;
// import com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession;
// import com.google.cloud.teleport.v2.templates.BigQueryToBigtable.ReadSessionFactory;
// import org.apache.avro.Schema;
// import org.junit.Test;
// import org.junit.runner.RunWith;
// import org.junit.runners.JUnit4;
//
// /** Unit tests for {@link BigQueryToBigtable}. */
// @RunWith(JUnit4.class)
// public class BigQueryToBigtableTest {
//
//   private static final String SCHEMA =
//       "{\"type\":\"record\",\"name\":\"__root__\",\"fields\":"
//           + "[{\"name\":\"device_id\",\"type\":[\"null\",\"string\"]},"
//           + "{\"name\":\"temperature_c\",\"type\":[\"null\",\"double\"]},"
//           + "{\"name\":\"temperature_f\",\"type\":[\"null\",\"double\"]},"
//           + "{\"name\":\"sample_time\",\"type\":[\"null\",{\"type\":\"long\",\"logicalType\":\"timestamp-micros\"}]},"
//           + "{\"name\":\"humidity\",\"type\":[\"null\",\"double\"]}]}";
//   private static final String TABLE = "fantasmic-999999:great_data.table";
//   private BigQueryStorageClient client = mock(BigQueryStorageClient.class);
//
//   /** Test {@link ReadSessionFactory} throws exception when invalid table reference is provided. */
//   @Test(expected = IllegalArgumentException.class)
//   public void testReadSessionFactoryBadTable() {
//
//     // Test input
//     final String badTableRef = "fantasmic-999999;great_data.table";
//     final TableReadOptions tableReadOptions = TableReadOptions.newBuilder().build();
//     ReadSessionFactory trsf = new ReadSessionFactory();
//     ReadSession trs = trsf.create(client, badTableRef, tableReadOptions);
//   }
//
//   /** Test Schema Parser is working as expected. */
//   @Test
//   public void testSchemaParse() {
//     Schema schema = new Schema.Parser().parse(SCHEMA);
//     assertEquals(schema.toString(), SCHEMA);
//   }
// }

@@ -1013,130 +1013,8 @@
 on;%0A
-// import com.google.cloud.teleport.v2.templates.BigQueryToBigtable.ReadSessionFactory;%0A// import org.apache.avro.Schema;%0A
 // i
@@ -1035,16 +1035,16 @@
 t.Test;%0A
+
 // impor
@@ -1234,547 +1234,8 @@
 t %7B%0A
-//%0A//   private static final String SCHEMA =%0A//       %22%7B%5C%22type%5C%22:%5C%22record%5C%22,%5C%22name%5C%22:%5C%22__root__%5C%22,%5C%22fields%5C%22:%22%0A//           + %22%5B%7B%5C%22name%5C%22:%5C%22device_id%5C%22,%5C%22type%5C%22:%5B%5C%22null%5C%22,%5C%22string%5C%22%5D%7D,%22%0A//           + %22%7B%5C%22name%5C%22:%5C%22temperature_c%5C%22,%5C%22type%5C%22:%5B%5C%22null%5C%22,%5C%22double%5C%22%5D%7D,%22%0A//           + %22%7B%5C%22name%5C%22:%5C%22temperature_f%5C%22,%5C%22type%5C%22:%5B%5C%22null%5C%22,%5C%22double%5C%22%5D%7D,%22%0A//           + %22%7B%5C%22name%5C%22:%5C%22sample_time%5C%22,%5C%22type%5C%22:%5B%5C%22null%5C%22,%7B%5C%22type%5C%22:%5C%22long%5C%22,%5C%22logicalType%5C%22:%5C%22timestamp-micros%5C%22%7D%5D%7D,%22%0A//           + %22%7B%5C%22name%5C%22:%5C%22humidity%5C%22,%5C%22type%5C%22:%5B%5C%22null%5C%22,%5C%22double%5C%22%5D%7D%5D%7D%22;%0A
 //  
@@ -1599,19 +1599,16 @@
 ble() %7B%0A
-//%0A
 //     /
@@ -1834,24 +1834,24 @@
 nFactory();%0A
+
 //     ReadS
@@ -1926,227 +1926,8 @@
   %7D%0A
-//%0A//   /** Test Schema Parser is working as expected. */%0A//   @Test%0A//   public void testSchemaParse() %7B%0A//     Schema schema = new Schema.Parser().parse(SCHEMA);%0A//     assertEquals(schema.toString(), SCHEMA);%0A//   %7D%0A
 // %7D

clean up test a little for push