WriterSettingsBuilder { public WriterSettingsBuilder overwriteIfExists(final boolean flag) { overwriteIfExists = flag; return this; } WriterSettingsBuilder(); WriterSettingsBuilder overwriteIfExists(final boolean flag); WriterSettingsBuilder prettyPrinting(final boolean flag); WriterSettingsBuilder writeOutliers(final boolean flag); WriterSettingsBuilder writeIdlePoints(final boolean flag); WriterSettingsBuilder writeRoute(final boolean flag); WriterSettings build();  }
@Test public void overwriteIfExists() { final WriterSettingsBuilder instance = new WriterSettingsBuilder(); instance.overwriteIfExists(false); assertFalse(instance.build().overwriteIfExists()); }