ProfileBuilder.create()
.setId("myid")
.setActiveByDefault(true)
.addDependency(DependencyBuilder.create("mygroupId:myartifactId"))
.addDependency(DependencyBuilder.create("mygroupId:mysecond"))
.addRepository(new DependencyRepository("id", "url"));
ProfileAdapter profileAdapter = new ProfileAdapter(profileBuilder);
assertThat(profileAdapter.getId(), equalTo(profileBuilder.getId()));
assertThat(profileAdapter.getActivation().isActiveByDefault(), is(true));
assertThat(profileAdapter.getDependencies().size(), is(2));
assertThat(profileAdapter.getRepositories().size(), is(1));