@Test
public void testSaveSingleInvalidTable() throws Exception {

    Document expectedDocument = new Document();
    expectedDocument.setId(UUID.randomUUID().toString());
    expectedDocument.setTimestamp(System.currentTimeMillis());
    JsonNode data = mapper.valueToTree(Collections.singletonMap("TEST_NAME", "SINGLE_SAVE_TEST"));
    expectedDocument.setData(data);
    try {
        queryStore.save(TestUtils.TEST_TABLE + "-missing", expectedDocument);
        fail();
    } catch (QueryStoreException qse) {
        assertEquals(QueryStoreException.ErrorCode.NO_SUCH_TABLE, qse.getErrorCode());
    }
}