How to tell you have an analogy
It is sometimes difficult to diagnose exactly what an analogy is. Sometimes you will be confused as to whether you have a simple comparison, or an actual analogy. For instance, to say that you have a bike, which is like your friend's bike. This is a comparison, because you're not describing a different type of object to your bike, but instead, comparing your bike to another like object.
Now, an analogy would be to say that an airsoft gun is like a real gun, except that it shoots plastic pellets instead of lead bullets like a gun should.