public void testReadObject_Owner_Specific(){
String expectedValue = "expected value";
HashMap map = new HashMap();
map.put("key", expectedValue);
XMLDecoder decoder = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockOwner.xml"), map);
String actualValue = (String) decoder.readObject();
assertEquals(expectedValue,actualValue);
MockOwnerClass mock = new MockOwnerClass();
expectedValue = "I_Ljava.lang.String";
decoder = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockOwner_Specific.xml"), mock);
actualValue = (String) decoder.readObject();
assertEquals(expectedValue,actualValue);
decoder = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockOwner_Ambiguous.xml"), mock);
actualValue = (String) decoder.readObject();
assertNull(actualValue);
decoder = new XMLDecoder(this.getClass().getResourceAsStream(
"/xml/MockOwner_Null.xml"), mock);
actualValue = (String) decoder.readObject();
assertNull(actualValue);
}