o added hash and equals

Change-Id: Ic34d7a7c754ae5807cf70e5b729f6813deb43dc4
o moved address pattern to properties, increased testability, added test

Change-Id: I86ca2bd204cae895d95421858dc55970da4e7ca4