@Test
public void testTakeSnapshotF2() throws ResourceAllocationException {

    when(_volFactory.getVolume(anyLong())).thenReturn(volumeInfoMock);
    when(volumeInfoMock.getState()).thenReturn(Volume.State.Ready);
    when(volumeInfoMock.getInstanceId()).thenReturn(null);
    when (volService.takeSnapshot(Mockito.any(VolumeInfo.class))).thenReturn(snapshotInfoMock);
    _svc.takeSnapshot(5L, Snapshot.MANUAL_POLICY_ID, 3L, null, false);
}