PersistenceService { public T load() { File dataFile = getFile(); if (dataFile.exists()) { return read(dataFile); } return defaultInstance(); } PersistenceService(PersistenceGsonProvider gsonProvider, DataDirectoryLocator dataDirectoryLocator, Class<T> type); T load(); void save(T value);  }
@Test public void readSettingsNoFile() { assertNotNull(service.load()); }