* Regression test for HARMONY-1890
*/
public void testDecodeEmptyStringArray1890() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
XMLEncoder encoder = new XMLEncoder(out);
XMLDecoder decoder;
Object obj;
encoder.writeObject(new String[10]);
encoder.close();
decoder = new XMLDecoder(new ByteArrayInputStream(out.toByteArray()));
obj = decoder.readObject();
decoder.close();
assertTrue("Returned object is not array", obj.getClass().isArray());
assertSame("String type expected", String.class,
obj.getClass().getComponentType());
assertEquals("Size mismatch", 10, Array.getLength(obj));