This will fail on Windows.  Need to handle in a portable way.  e.g. assertEquals("bar",result.trim())