Implementing pre- and post- association parts of object template (+tests).