DatabaseStorageService implements StorageService { @SneakyThrows @Override public void remove(AbsoluteLocation location) { ParsedLocation parsed = new ParsedLocation(location, allowedTables); String sql = "DELETE FROM " + parsed.getTableName() + " WHERE `key` = ?"; conn.jdbcTemplate(location).update(sql, parsed.getPathWithUser()); }  @SneakyThrows @Override boolean objectExists(AbsoluteLocation location); @SneakyThrows @Override Stream<AbsoluteLocation<ResolvedResource>> list(AbsoluteLocation location); @SneakyThrows @Override InputStream read(AbsoluteLocation location); @SneakyThrows @Override void remove(AbsoluteLocation location); @SneakyThrows @Override OutputStream write(WithCallback<AbsoluteLocation, ? extends ResourceWriteCallback> locationWithCallback);  }
@Test void remove() { storageService.remove(FILE); assertThat(storageService.objectExists(FILE)).isFalse(); }