@Test
public void getSchemaVersion() throws Exception {

  when(metaStoreClient.getTable(DATABASE, TABLE)).thenReturn(table);
  when(hiveTableStrategy.getSchemaVersion(table)).thenReturn(1);
  int result = underTest.getSchemaVersion(TABLE);
  assertThat(result, is(1));
}