Unit test for this method.