I might be missing something but... InitialContext.lookup(String) vs initialContext.lookup(Name) do not provide a == ...
But according to this - http://docs.oracle.com/javase/6/docs/api/javax/naming/InitialContext.html#lookup(javax.lang.String), those methods should return == values.