pa.foundPattern(new PasswordPattern(1, 2, "23", 15, "worstPattern"));
pa.foundPattern(new PasswordPattern(1, 2, "23", 4, "bestPattern"));
pa.foundPattern(new PasswordPattern(1, 2, "23", 20, "worsePattern"));
pa.foundPattern(new PasswordPattern(1, 2, "23", 23, "worserPattern"));
PathCost patterns = pa.calculateHighestProbablePatterns();
List<PasswordPattern> list = patterns.getPath();
assertEquals(3, list.size());
double result = patterns.getTotalCost();
System.out.println("cost="+result);
double expected = Math.pow(10,3)*4;
assertEquals(expected, result, 0.5);
}