@Test
public void testLock() {

    // Prepare
    when(mockNwDao.acquireInLockTable(NW_ID_1, NetworkOrchestrationService.NetworkLockTimeout.value()))
    .thenReturn(mockNw);
    // Execute
    deployment.lock();
    // Assert
    verify(mockNwDao, times(1)).acquireInLockTable(NW_ID_1, 600);
    assertNotNull(LOCK_NOT_CORRECTLY_GOT, deployment.tableLockId);
    assertEquals(LOCK_NOT_CORRECTLY_GOT, NW_ID_1, NW_ID_1, deployment.tableLockId.longValue());
}