static public void testStorage(Storage storage, String fileName) throws IOException {
        int entryCount, uniqueWordsCount;
        long start, end;
        BufferedReader br = new BufferedReader(new FileReader(fileName));
        String line = br.readLine();
        String[] words;
        Matcher matcher;

        start = System.currentTimeMillis();
        while (line != null) {
            words = line.split(" ");
            for(String word : words) {
                matcher = pattern.matcher(word);
                if(matcher.matches()) {
                    word = matcher.group(1);
                    storage.add(word.toLowerCase());
                }
            }
            line = br.readLine();
        }
        end = System.currentTimeMillis();
        System.out.println("Initialization time: " + (end - start));


        start = System.currentTimeMillis();
        entryCount = storage.entryCount("love");
        uniqueWordsCount = storage.uniqueWordsCount();
        end = System.currentTimeMillis();

        System.out.println("Methods time: " + (end - start));
        System.out.println("Entry count: " + entryCount + ", unique words: " + uniqueWordsCount);
        System.out.println();
    }