### Question:
FastIsochroneFactory { public void prepare(final StorableProperties properties) { ExecutorService threadPool = Executors.newFixedThreadPool(1); ExecutorCompletionService<String> completionService = new ExecutorCompletionService<>(threadPool); final String name = "PreparePartition"; completionService.submit(() -> { Thread.currentThread().setName(name); getPartition().prepare(); setIsochroneNodeStorage(getPartition().getIsochroneNodeStorage()); setCellStorage(getPartition().getCellStorage()); properties.put(FastIsochrone.PREPARE + "date." + name, Helper.createFormatter().format(new Date())); }, name); threadPool.shutdown(); try { completionService.take().get(); } catch (Exception e) { threadPool.shutdownNow(); throw new IllegalStateException(e); } }  void init(CmdArgs args); FastIsochroneFactory setFastIsochroneProfilesAsStrings(List<String> profileStrings); Set<String> getFastisochroneProfileStrings(); FastIsochroneFactory addFastIsochroneProfileAsString(String profileString); final boolean isEnabled(); final FastIsochroneFactory setEnabled(boolean enabled); final boolean isDisablingAllowed(); final FastIsochroneFactory setDisablingAllowed(boolean disablingAllowed); FastIsochroneFactory setPartition(PreparePartition pp); PreparePartition getPartition(); void prepare(final StorableProperties properties); void createPreparation(GraphHopperStorage ghStorage, EdgeFilterSequence edgeFilters); void setExistingStorages(); IsochroneNodeStorage getIsochroneNodeStorage(); void setIsochroneNodeStorage(IsochroneNodeStorage isochroneNodeStorage); CellStorage getCellStorage(); void setCellStorage(CellStorage cellStorage);  }### Answer:
@Test public void testPrepare() { GraphHopperStorage gs = ToyGraphCreationUtil.createMediumGraph(encodingManager); FastIsochroneFactory fastIsochroneFactory = intitFastIsochroneFactory(); fastIsochroneFactory.createPreparation(gs, null); fastIsochroneFactory.prepare(gs.getProperties()); assertNotNull(fastIsochroneFactory.getCellStorage()); assertNotNull(fastIsochroneFactory.getIsochroneNodeStorage()); }