private void toggleSpareElement(boolean direction) {
        final String SPARE_FILE = baseTestNoteRepository + SPARE_TESTFILE_UUID;
        File spareFile = new File(SPARE_FILE + ".spare");
        File jsonFile = new File(SPARE_FILE + ".json");

        if (direction == SPARE2JSON) {
            assertTrue(spareFile.renameTo(jsonFile));
        } else {
            assertTrue(jsonFile.renameTo(spareFile));
        }
    }