public function testEncodeScalar() {
$obj = new ScalarDummy();
$obj->xmlFoo = "foo";
$expected = '<?xml version="1.0"?>' . "\n" . '<response>foo</response>' . "\n";
$this
->assertEquals($expected, $this->encoder
->encode($obj, 'xml'));
}