  @Test(expected=NoSuchObjectException.class)
  public void testGetPartitionEntityNotFound() throws Exception {

    when(glueClient.getPartition(any(GetPartitionRequest.class)))
      .thenThrow(new EntityNotFoundException("Test exception: partition not found"));
    metastoreClientDelegate.getPartition(testDb.getName(), testTbl.getName(), "testPart");
    verify(glueClient, times(1)).getPartition(any(GetPartitionRequest.class));
  }