dropTableIfPresent(node, "NEW_TABLE");
assertTokensAndExecute(node, map, 0, 0);
DbEntity dbEntity = new DbEntity("NEW_TABLE");
DbAttribute column1 = new DbAttribute("ID", Types.INTEGER, dbEntity);
column1.setMandatory(true);
column1.setPrimaryKey(true);
dbEntity.addAttribute(column1);
DbAttribute column2 = new DbAttribute("NAME", Types.VARCHAR, dbEntity);
column2.setMaxLength(10);
column2.setMandatory(false);
dbEntity.addAttribute(column2);
map.addDbEntity(dbEntity);
assertTokensAndExecute(node, map, 1, 0);
assertTokensAndExecute(node, map, 0, 0);
ObjEntity objEntity = new ObjEntity("NewTable");
objEntity.setDbEntity(dbEntity);
ObjAttribute oatr1 = new ObjAttribute("name");
oatr1.setDbAttributePath(column2.getName());
oatr1.setType("java.lang.String");
objEntity.addAttribute(oatr1);
map.addObjEntity(objEntity);
// remove name column
objEntity.removeAttribute(oatr1.getName());
dbEntity.removeAttribute(column2.getName());
assertNull(objEntity.getAttribute(oatr1.getName()));
assertEquals(0, objEntity.getAttributes().size());
assertNull(dbEntity.getAttribute(column2.getName()));
List<MergerToken> tokens = createMergeTokens();
assertEquals(1, tokens.size());
MergerToken token = tokens.get(0);
if (token.getDirection().isToDb()) {