@Test(expected = MetaStoreException.class)
public void createTable_shouldWrapTException() throws Exception {

  when(locationResolver.resolveLocation(anyString(), anyBoolean())).thenReturn(location);
  when(
      hiveTableStrategy.newHiveTable(anyString(), anyString(), anyString(), anyString(), any(Schema.class), anyInt()))
          .thenReturn(table);
  doThrow(TException.class).when(metaStoreClient).createTable(table);
  underTest.createTable(TABLE, PARTITION_COLUMN, schema, 1, "owner");
}