    @Test public void testSimpleSync () {

        Protocol.Session session = testSession();
        TestDB one = new TestDB(), two = new TestDB();

        one.trueBool.update(true);
        one.maxInt.update(42);
        one.maxLong.update(400L);
        one.serverString.update("foo");
        one.unionSet.add("one");
        one.unionSet.add("two");
        one.unionSet.add("three");
        one.interSet.add("four");
        one.serverSet.add("five");

        session.sync(one);
        session.sync(two);
        one.assertEquals(two);

        // make sure we have no lingering modifications
        assertEquals(0, one.getMods().size());
        assertEquals(0, two.getMods().size());
    }