// check peer artist
// use threaded helper as a barrier, to avoid triggering faults earlier than
// needed
ThreadedTestHelper helper = new ThreadedTestHelper() {
@Override
protected void assertResult() throws Exception {
Object value = altArtist.readPropertyDirectly("paintingArray");
assertTrue("Unexpected: " + value, value instanceof ToManyList);
assertTrue(((ToManyList) value).isFault());
}
};
helper.assertWithTimeout(2000);
List list = altArtist.getPaintingArray();
assertEquals(2, list.size());
}