use Bar; #something here to mock out Foo::get_db_value so that it returns a value of "2" is(Bar::bar_func(), 84, "bar_func works as advertised");