### Question:
OpenApiProfileDefinition implements BuiltInQualityProfilesDefinition { @Override public void define(BuiltInQualityProfilesDefinition.Context context) { NewBuiltInQualityProfile profile = context.createBuiltInQualityProfile(SONAR_WAY_PROFILE, OpenApi.KEY); profile.setDefault(true); for (Class check : CheckList.getChecks()) { Rule annotation = AnnotationUtils.getAnnotation(check, Rule.class); profile.activateRule(CheckList.REPOSITORY_KEY, annotation.key()); } profile.done(); }  @Override void define(BuiltInQualityProfilesDefinition.Context context); static final String SONAR_WAY_PROFILE; }### Answer:
@Test public void should_create_sonar_way_profile() { OpenApiProfileDefinition definition = new OpenApiProfileDefinition(); NewBuiltInQualityProfile profile = mock(NewBuiltInQualityProfile.class); Context context = context(profile); definition.define(context); ; verify(context).createBuiltInQualityProfile(SONAR_WAY_PROFILE, OpenApi.KEY); verify(profile).setDefault(true); verify(profile, Mockito.atLeast(2)).activateRule(eq(CheckList.REPOSITORY_KEY), anyString()); }