@Test
public void testLock() {

    // Prepare
    when(mockVpcDao.acquireInLockTable(VPC_ID)).thenReturn(mockVpc);
    // Execute
    deployment.lock();
    // Assert
    verify(mockVpcDao, times(1)).acquireInLockTable(VPC_ID);
    assertNotNull(LOCK_NOT_CORRECTLY_GOT, deployment.tableLockId);
    assertEquals(LOCK_NOT_CORRECTLY_GOT, VPC_ID, deployment.tableLockId.longValue());
}