@Test
public void testGetWorkflowInstances() {

    Vector workflowInsts = null;
    try {
        List list = AvroTypeFactory.getWorkflowInstances(wmgr.getWorkflowInstances());
        workflowInsts = new Vector();
        for (Object o : list) {
            workflowInsts.add(o);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    assertNotNull(workflowInsts);
    assertEquals(2, workflowInsts.size());
}