public void testRefreshingToOne() {
ObjectContext context = createDataContext();
QueryChain chain = new QueryChain();
chain.addQuery(new SQLTemplate(
Artist.class,
"INSERT INTO ARTIST (ARTIST_ID, ARTIST_NAME) VALUES (1, 'a1')"));
chain
.addQuery(new SQLTemplate(
Painting.class,
"INSERT INTO PAINTING (PAINTING_ID, ARTIST_ID, PAINTING_TITLE) VALUES (1, 1, 'p1')"));
context.performQuery(chain);