@Test
public void testProgress() {
Monitor monitor = new Monitor();
ProgressListener progress = GeoToolsAdapters.progress(monitor);
progress.setDescription("go");
progress.started();
assertEquals("test started", 0.0, monitor.work, 0.01 );
assertEquals("test started", 100.0, monitor.total, 0.01 );
assertFalse( monitor.isCanceled );
assertEquals("task", "go", monitor.task );
progress.progress( 0.5f );
assertEquals("test working", 50.0, monitor.work, 0.01 );
assertEquals("test working", 100.0, monitor.total, 0.01 );
progress.progress( 1.0f );
assertEquals("test finished", 100.0, monitor.work, 0.01 );
assertEquals("test finished", 100.0, monitor.total, 0.01 );
assertEquals("almost done", false, monitor.done );
progress.complete();
assertEquals("test done", true, monitor.done );
}