@Test
public void tableExists() throws Exception {

  when(metaStoreClient.tableExists(DATABASE, TABLE)).thenReturn(true);
  boolean result = underTest.tableExists(TABLE);
  verify(metaStoreClient).tableExists(DATABASE, TABLE);
  assertThat(result, is(true));
}