What you want to use here is Collections.singleton()