public void testPatternToJSON() throws IOException {
MockPasswordResults results = new MockPasswordResults("test");
results.foundPattern(new PasswordPattern(1, 2, "te", 300, "This is a test pattern", "testPattern", "test"));
results.foundPattern(new PasswordPattern(3, 2, "st", 350, "This is another test pattern", "testPattern2", "test"));
PathCost pathCost = results.calculateHighestProbablePatterns();
JsonWriter writer = new JsonWriter();
writer.write(new PrintWriter(System.out, true), pathCost);
}