### Question:
EventStore { public void save(LoggableEvent[] events) throws IOException { String text = getGson().toJson(events); Writer writer = configFile.getWriter(); try { writer.write(text); } finally { writer.close(); } } EventStore(FileIO configFile); void save(LoggableEvent[] events); LoggableEvent[] load(); void clear();  }### Answer:
@Test public void eventStoreSavesData() throws IOException { store.save(events); assertTrue(fakeFile.getWriter().toString().length() > 0); }