Use proper mock for raising.