### Question:
Levels { public static String loadFromFile(String name) { StringBuffer buffer = loadLines( "expansion/levels/" + name + ".lev", StringBuffer::new, (container, line) -> container.append(line) ); return buffer.toString(); }  static void put(String name, String result); static String get(String name); static String loadFromFile(String name); static T loadLines(String filePath,
                                Supplier<T> supplier,
                                BiFunction<T, String, T> applier); static LevelsFactory collectLevels(int boardSize, List<String> levels); static LevelsFactory none(); static List<Supplier<Level>> collectYours(final int viewSize, final String... boards); @NotNull static LevelImpl getLevel(int viewSize, String name); static String decorate(String level); static final int COUNT_LAYERS; static final String DEMO; static final String BIG_MULTI1; static final List<String> MULTI; static final List<String> SINGLE; }### Answer:
@Test public void shouldLoadFromFile() { String s = Levels.loadFromFile(Levels.DEMO); assertEquals( "##############" + "#1...O......2#" + "#......$O....#" + "#....####....#" + "#....# #....#" + "#.O### ###.O#" + "#.$# #..#" + "#..# #$.#" + "#O.### ###O.#" + "#....# #....#" + "#....####....#" + "#....O$......#" + "#4......O...3#" + "##############", s); }