public final void testBroadcastTwoPartJoin() throws Exception {
ResultSet res = executeQuery();
assertResultSet(res);
cleanupQuery(res);
MasterPlan plan = getQueryPlan(((TajoResultSet)res).getQueryId());
ExecutionBlock rootEB = plan.getRoot();
/*
|-eb_1395996354406_0001_000010
|-eb_1395996354406_0001_000009
|-eb_1395996354406_0001_000008
|-eb_1395996354406_0001_000005
*/
assertEquals(1, plan.getChildCount(rootEB.getId()));
ExecutionBlock firstJoinEB = plan.getChild(rootEB.getId(), 0);
assertNotNull(firstJoinEB);
assertEquals(NodeType.JOIN, firstJoinEB.getPlan().getType());
assertEquals(0, firstJoinEB.getBroadcastTables().size());
ExecutionBlock leafEB1 = plan.getChild(firstJoinEB.getId(), 0);
assertTrue(leafEB1.getBroadcastTables().contains("default.orders"));
assertTrue(leafEB1.getBroadcastTables().contains("default.part"));
ExecutionBlock leafEB2 = plan.getChild(firstJoinEB.getId(), 1);
assertTrue(leafEB2.getBroadcastTables().contains("default.nation"));
}