.setName(snapshotName).build();
SnapshotTestingUtils.expectSnapshotDoneException(master, new HSnapshotDescription(desc),
UnknownSnapshotException.class);
// set a mock handler to simulate a snapshot
DisabledTableSnapshotHandler mockHandler = Mockito.mock(DisabledTableSnapshotHandler.class);
Mockito.when(mockHandler.getException()).thenReturn(null);
Mockito.when(mockHandler.getSnapshot()).thenReturn(desc);
Mockito.when(mockHandler.isFinished()).thenReturn(new Boolean(true));
master.getSnapshotManagerForTesting().setSnapshotHandlerForTesting(mockHandler);
// if we do a lookup without a snapshot name, we should fail - you should always know your name
SnapshotTestingUtils.expectSnapshotDoneException(master, new HSnapshotDescription(),