return DefaultImmutableAggregate.createNew( projection, aggregateId);
return DefaultImmutableAggregate.createNew( projection, aggregateId);
when(projection.empty()).thenReturn(new TestState(null)); DefaultImmutableAggregate sourceAggregate = DefaultImmutableAggregate.createNew(projection, AGGREGATE_ID); when(repository.load(any())).thenReturn(sourceAggregate); when(repository.append(any(), any(), any(), any())).thenReturn(newVersion);