Adds a mock object class to Lagrangian.