assertEquals(stderr.toByteArray(),error.getBytes());
}
@Test
public void start() throws IOException {
Environment env = createMock(Environment.class);
Map<String,String> map = new HashMap<String,String>();
map.put(Environment.ENV_USER,"roland");
expect(env.getEnv()).andReturn(map);
replay(env);
prepare("input","output",null,0);
cmd.start(env);
verify(env);