### Question:
HiveDifferences { @VisibleForTesting static TableAndMetadata sourceTableToTableAndMetadata(Table sourceTable) { return new TableAndMetadata(Warehouse.getQualifiedName(sourceTable), normaliseLocation(sourceTable.getSd().getLocation()), sourceTable); } private  HiveDifferences(
      ComparatorRegistry comparatorRegistry,
      DiffListener diffListener,
      Table sourceTable,
      Iterator<Partition> sourcePartitionIterator,
      Optional<Table> replicaTable,
      Optional<? extends PartitionFetcher> replicaPartitionFetcher,
      Function<Path, String> checksumFunction,
      int partitionLimit); static Builder builder(DiffListener diffListener); void run();  }### Answer:
@Test public void sourceTableToTableAndMetadata() { Table sourceTable = TestUtils.newTable("sourceDB", "sourceTable"); TableAndMetadata sourceTableAndMetadata = HiveDifferences.sourceTableToTableAndMetadata(sourceTable); assertThat(sourceTableAndMetadata.getSourceTable(), is("sourceDB.sourceTable")); assertThat(sourceTableAndMetadata.getSourceLocation(), is(sourceTable.getSd().getLocation())); assertThat(sourceTableAndMetadata.getTable(), is(sourceTable)); }