vsi = new VariableServiceImpl();
}
public void testNameAlreadyInUse() {
List variables = new ArrayList();
Variable variable = new Variable("var1","val1");
variables.add(variable);
variables.add(new Variable("var2","val2"));
variables.add(new Variable("var3","val3"));
assertFalse("1",vsi.nameAlreadyInUse(variable.getId(),"var1",variables));
assertTrue("2",vsi.nameAlreadyInUse("","var1",variables));
assertTrue("3",vsi.nameAlreadyInUse(" ","var1",variables));
assertTrue("4",vsi.nameAlreadyInUse(null,"var1",variables));
assertTrue("5",vsi.nameAlreadyInUse(variable.getId(),"var2",variables));
}