@Test
public void createTable() throws Exception {

  when(locationResolver.resolveLocation(anyString(), anyBoolean())).thenReturn(location);
  when(
      hiveTableStrategy.newHiveTable(anyString(), anyString(), anyString(), anyString(), any(Schema.class), anyInt()))
          .thenReturn(table);
  underTest.createTable(TABLE, PARTITION_COLUMN, schema, 1, "owner");
  verify(locationResolver).resolveLocation(DATABASE + "/" + TABLE, true);
  verify(hiveTableStrategy).newHiveTable(DATABASE, TABLE, PARTITION_COLUMN, location.toString(), schema, 1);
  verify(table).setOwner("owner");
  verify(metaStoreClient).createTable(table);
}