use mock in library hsql test