@Test
  public void shouldLeaveNullTargetSetWhenSourceIsNullForCreateMethod() {

    Source source = new Source();
    source.setCollection(null);

    TargetWithSetter target = Issue289Mapper.INSTANCE.sourceToTargetWithSetter(source);

    assertThat(target.getCollection()).isNull();
  }
  @Test
  public void shouldLeaveEmptyTargetSetWhenSourceIsNullAndGetterOnlyForUpdateMethod() {

    Source source = new Source();
    source.setCollection(null);
    TargetWithoutSetter target = new TargetWithoutSetter();
    target.getCollection().add(new TargetElement());

    Issue289Mapper.INSTANCE.sourceToTargetWithoutSetter(source, target);

    assertThat(target.getCollection()).isEmpty();
  }