private void runBasic() throws IOException
    {
        mockSelect.setDefaultReturnValue("getThread", null);
        mockSunsChannel.setDefaultBehavior("write", new CloneByteBuffer());
        ByteBuffer b = ByteBuffer.allocate(1000);        
        String expected = "abc";
        HELPER.putString(b, expected);
        HELPER.doneFillingBuffer(b);
        
//        mockSunsChannel.addReturnValue("write", b.remaining());
        client1.oldWrite(b);
        CalledMethod m = mockSunsChannel.expect("write");
        ByteBuffer actual = (ByteBuffer)m.getAllParams()[0];
        String msg = HELPER.readString(actual, actual.remaining());
        assertEquals(expected, msg);
    }