@Test
public void put1Delete1Put1a() throws Exception {
getZero();
Resource doc1 = putDoc1(false);
doc1.setRevision(1);
TextFlow tf1 = doc1.getTextFlows().get(0);
tf1.setRevision(1);
TranslationsResource target1 = putTarget1();
TextFlowTarget tft1 = target1.getTextFlowTargets().get(0);
tft1.setTextFlowRevision(1);
expectDocs(true, false, doc1);
tft1.setRevision(1);
expectTarget1(target1);
deleteDoc1(); // doc1 becomes obsolete
getZero();
dontExpectTarget1();
Resource doc1a = putDoc1a(false); // doc1 resurrected, rev 2
doc1a.setRevision(2);
TextFlow tf1a = doc1a.getTextFlows().get(0);
tf1a.setRevision(doc1a.getRevision());
TranslationsResource target1a = putTarget1a();
TextFlowTarget tft1a = target1a.getTextFlowTargets().get(0);
tft1a.setTextFlowRevision(tf1a.getRevision());
tft1a.setRevision(1);
expectDocs(true, false, doc1a);
dontExpectTarget1();
expectTarget1a(target1a);
}