Unit testing registration and resolution of custom library+type.