@Test
  public void shouldAddPhone() {
    OutsiderTeacher teacher = scenarioHelper.createEmptyOutsiderTeacher();
    Phone phone = PhoneTest.createOne(scenarioHelper.createPhoneType());

    assertThat(outsiderTeacherManager.findOneById(teacher.getId()).getContact().getPhones())
        .isEmpty();
    Phone saved = outsiderTeacherManager.addPhone(teacher.getId(), phone);

    assertThat(phoneRepository.findAll()).hasSize(1);
    assertThat(outsiderTeacherManager.findOneById(teacher.getId()).getContact().getPhones())
        .hasSize(1);
    assertThat(saved.getId()).isNotNull();
  }
 @Test(expected = PhoneTypeResourceNotFoundException.class)
 public void shouldFailAddPhoneWithPhoneHavingNonExistingType() {
   OutsiderTeacher model = scenarioHelper.createEmptyOutsiderTeacher();
   outsiderTeacherManager.addPhone(model.getId(), PhoneTest.createOne());
 }
 @Test(expected = AlreadyDefinedInOnNonPersistedEntity.class)
 public void shouldFailAddPhoneWithPhoneHavingIdAlreadyDefined() {
   Phone model = PhoneTest.createOne();
   model.setId(12L);
   outsiderTeacherManager.addPhone(12L, model);
 }
 @Test(expected = IllegalArgumentException.class)
 public void shouldFailAddPhoneWithNullPhone() {
   outsiderTeacherManager.addPhone(12L, null);
 }
 @Test(expected = TeacherResourceNotFoundException.class)
 public void shouldFailAddPhoneWithNonExistingTeacher() {
   PhoneType type = scenarioHelper.createPhoneType();
   outsiderTeacherManager.addPhone(12L, PhoneTest.createOne(type));
 }
 /*
  * addPhone()
  */
 @Test(expected = IllegalArgumentException.class)
 public void shouldFailAddPhoneWithNullTeacherId() {
   outsiderTeacherManager.addPhone(null, PhoneTest.createOne());
 }