public void testBuildTypeRadios() throws Exception {
String mavenId = "maven-project";
String gradleId = "gradle-project";
String jsonFile = "initializr.json";
NewSpringBootWizardModel model = parseFrom(jsonFile);
String starterZipUrl = resourceUrl(jsonFile).toURI().resolve("/starter.zip").toString();
assertEquals(starterZipUrl, model.baseUrl.getValue());
RadioGroup group = model.getRadioGroups().getGroup("type");
assertNotNull(group);
assertGroupValues(group, mavenId, gradleId);
assertEquals(mavenId, group.getDefault().getValue());
group.getSelection().selection.setValue(group.getRadio(mavenId));
assertEquals(BuildType.MAVEN, model.getBuildType());
assertEquals(starterZipUrl, model.baseUrl.getValue());
group.getSelection().selection.setValue(group.getRadio(gradleId));
assertEquals(BuildType.GRADLE, model.getBuildType());
assertEquals(starterZipUrl, model.baseUrl.getValue());
}