@Test
public void beginBeforeEnd() {

	ByteArrayOutputStream stream = new ByteArrayOutputStream();
	StreamProgressMonitor monitor = new StreamProgressMonitor(
			new PrintStream(stream));
	monitor.beginTask("task1", 1);
	monitor.beginTask("task2", StreamProgressMonitor.UNKNOWN);
	assertEquals("task1: 1 " + StreamProgressMonitor.DONE + SEPARATOR
			+ "task2 ", stream.toString());
}