@Test
public void testConflict() throws Exception {
addToSortbox("foo");
setRules(new Rule(RuleType.NAME_CONTAINS, "foo", "/foo", 0, null));
doThrow(new FileMoveCollisionException(null))
.when(testClient).move(Dropbox.getSortboxPath() + "/foo", "/foo/foo");
doThrow(new FileMoveCollisionException(null))
.when(testClient).move(Dropbox.getSortboxPath() + "/foo", "/foo/foo conflict");
RuleUtils.runRules(u);
verify(testClient).move(Dropbox.getSortboxPath() + "/foo", "/foo/foo conflict 2");
}