Added AssertConfigurationIsValid overload that takes the profile as a generic type parameter.