// Path: src/java/com/google/cloud/bigquery/dwhassessment/extractiontool/db/SchemaFilters.java
// public static SchemaFilter parse(String input) {
//   Map<String, String> filterMap =
//       "".equals(input)
//           ? ImmutableMap.of()
//           : Splitter.onPattern(",\\s*").withKeyValueSeparator(':').split(input);
//   Sets.SetView<String> unknownKeys = Sets.difference(filterMap.keySet(), VALID_KEYS);
//   Preconditions.checkState(
//       unknownKeys.isEmpty(),
//       "Got filter with invalid key(s): %s.",
//       Joiner.on(", ").join(unknownKeys));
// 
//   SchemaFilter.Builder filterBuilder = SchemaFilter.builder();
//   if (filterMap.containsKey(KEY_DB)) {
//     filterBuilder.setDatabaseName(compilePattern(KEY_DB, filterMap.get(KEY_DB)));
//   }
//   if (filterMap.containsKey(KEY_TABLE)) {
//     filterBuilder.setTableName(compilePattern(KEY_TABLE, filterMap.get(KEY_TABLE)));
//   }
//   return filterBuilder.build();
// }


import static com.google.cloud.bigquery.dwhassessment.extractiontool.db.SchemaFilters.parse;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertThrows;
import com.google.re2j.Pattern;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/*
 * Copyright 2021 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
 *
 *     https://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.bigquery.dwhassessment.extractiontool.db;



@RunWith(JUnit4.class)
public final class SchemaFiltersTest {

// Path: src/java/com/google/cloud/bigquery/dwhassessment/extractiontool/db/SchemaFilters.java
// public static SchemaFilter parse(String input) {
//   Map<String, String> filterMap =
//       "".equals(input)
//           ? ImmutableMap.of()
//           : Splitter.onPattern(",\\s*").withKeyValueSeparator(':').split(input);
//   Sets.SetView<String> unknownKeys = Sets.difference(filterMap.keySet(), VALID_KEYS);
//   Preconditions.checkState(
//       unknownKeys.isEmpty(),
//       "Got filter with invalid key(s): %s.",
//       Joiner.on(", ").join(unknownKeys));
// 
//   SchemaFilter.Builder filterBuilder = SchemaFilter.builder();
//   if (filterMap.containsKey(KEY_DB)) {
//     filterBuilder.setDatabaseName(compilePattern(KEY_DB, filterMap.get(KEY_DB)));
//   }
//   if (filterMap.containsKey(KEY_TABLE)) {
//     filterBuilder.setTableName(compilePattern(KEY_TABLE, filterMap.get(KEY_TABLE)));
//   }
//   return filterBuilder.build();
// }


// Path: src/javatests/com/google/cloud/bigquery/dwhassessment/extractiontool/db/SchemaFiltersTest.java
import static com.google.cloud.bigquery.dwhassessment.extractiontool.db.SchemaFilters.parse;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertThrows;
import com.google.re2j.Pattern;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/*
 * Copyright 2021 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
 *
 *     https://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.bigquery.dwhassessment.extractiontool.db;



@RunWith(JUnit4.class)
public final class SchemaFiltersTest {

  @Test