Through the magic of reflection, abstractentitymanager. Also tests