@Test(expected = CloudRuntimeException.class)
public void getNextSystemVmIdTestLongNull() {

    Mockito.doReturn(null).when(autonomiccsSystemVmDao).getNextInSequence(Mockito.eq(Long.class), Mockito.eq("id"));
    spy.getNextSystemVmId();
    Mockito.verify(autonomiccsSystemVmDao).getNextInSequence(Mockito.eq(Long.class), Mockito.eq("id"));
}