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

  doThrow(TException.class).when(metaStoreClient).add_partition(any());
  doReturn(URI.create("resolved/location")).when(locationResolver).resolveLocation(LOCATION, false);
  doReturn(Instant.ofEpochSecond(1526462225L)).when(clock).instant();
  underTest.addPartition(TABLE, PARTITION_VALUES, LOCATION);
}