@Test
public void destinationWithWrongTypeIsInvalid() {

  IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class,
          () -> tableMetadataChecker.ensureCopyingPossible("base", "wrong_type"));
  assertThat(thrown.getMessage(), containsString("Source column base.TIME1 has type TIME and destination column wrong_type.TIME1 has mismatching type INTEGER"));
}