@Test
public void testGetInstance() {

    DXWorkflow workflow = DXWorkflow.getInstance("workflow-000011112222333344445555");
    Assert.assertEquals("workflow-000011112222333344445555", workflow.getId());
    Assert.assertEquals(null, workflow.getProject());
    DXWorkflow workflow2 =
            DXWorkflow.getInstance("workflow-000100020003000400050006",
                    DXProject.getInstance("project-123412341234123412341234"));
    Assert.assertEquals("workflow-000100020003000400050006", workflow2.getId());
    Assert.assertEquals("project-123412341234123412341234", workflow2.getProject().getId());
    try {
        DXWorkflow.getInstance(null);
        Assert.fail("Expected creation without setting ID to fail");
    } catch (NullPointerException e) {
        // Expected
    }
    try {
        DXWorkflow.getInstance("workflow-123412341234123412341234", (DXContainer) null);
        Assert.fail("Expected creation without setting project to fail");
    } catch (NullPointerException e) {
        // Expected
    }
    try {
        DXWorkflow.getInstance(null, DXProject.getInstance("project-123412341234123412341234"));
        Assert.fail("Expected creation without setting ID to fail");
    } catch (NullPointerException e) {
        // Expected
    }
}