Prim prim = deployExpectingSuccess(FILES + "echo-system" +".cdl", "echoSystem2");
Prim prim = deployExpectingSuccess(VALID_CDL_FILES + ECHO_SYSTEM, ECHO_SYSTEM+"2");
    public void testEchoSystemWait() throws Throwable {        Prim prim = deployExpectingSuccess(FILES + "echo-system" +".cdl", "echoSystem2");        Prim echoPrim =prim;        boolean terminated = false;        try {            terminated = spinUntilTerminated(echoPrim, 30);            assertTrue("successful termination",terminated);        } finally {            if(!terminated) {                try {                    terminateApplication(prim);                } catch (java.rmi.NoSuchObjectException ignore) {                    //already terminated, do nothing                }            }        }    }