final Capture<Integer> captured = new Capture<Integer>(type);
expect(mock.oneArg(capture(captured))).andReturn("1");
expect(mock.oneArg(anyInt())).andReturn("1");
expect(mock.oneArg(capture(captured))).andReturn("2").times(2);
mock.twoArgumentMethod(capture(captured), eq(5));
mock.twoArgumentMethod(capture(captured), capture(captured));
replay(mock);
mock.oneArg(0);