'Create a new style object with keywords,
send it over the wire, and check the result.'

def test_newStyleWithKeywords(self):

    orig = NewStyleCopy('value1')
    d = self.ref.callRemote('echoWithKeywords', orig, keyword1='one', keyword2='two')
    self.pump.flush()
    def cb(res):
        self.assertIsInstance(res, tuple)
        self.assertIsInstance(res[0], NewStyleCopy)
        self.assertIsInstance(res[1], dict)
        self.assertEqual(res[0].s, 'value1')
        self.assertIsNot(res[0], orig)
        self.assertEqual(res[1], {'keyword1': 'one', 'keyword2': 'two'})
    d.addCallback(cb)
    return d
