@Test
  public void create_set_request() {
    CreateRequest result = underTest.setLanguage("java").setProfileName("Sonar way").build();

    assertThat(result.getLanguage()).isEqualTo("java");
    assertThat(result.getProfileName()).isEqualTo("Sonar way");
  }
 @Test
 public void fail_when_no_profile_name() {
   expectedException.expect(IllegalArgumentException.class);
   underTest.setLanguage("java").build();
 }