Extract nested classes.
Unit test for `TaskMapping`.