<BUG>Lock.acquire(new LockConfig(), LOCK_KEYSPACE, session);Query expectedQuery = Query.builder()</BUG><CONTEXT>assertThat(throwable.getCause()).isNotNull();assertThat(throwable).hasMessage("Query to create locks schema failed to execute");}@Testpublic void shouldTryToCreateLocksTable() throws Exception {<extra_id_0>.withQuery("CREATE TABLE IF NOT EXISTS locks.locks (name text PRIMARY KEY, client uuid)").build();assertThat(activityClient.retrieveQueries()).contains(expectedQuery);</CONTEXT>
Lock.acquire(DEFAULT_LOCK_CONFIG, LOCK_KEYSPACE, session);Query expectedQuery = Query.builder()