netWeight)->toBe(100) ->and($weight->grossWeight)->toBe(120) ->and($weight->theoreticalAverage)->toBe(110); }); it('throws DomainException when instantiated with a negative weight', function (): void { // GIVEN, WHEN & THEN expect(fn () => new IncoWeight(-5, 100, 100)) ->toThrow(\DomainException::class, 'Weight values must be non-negative.'); }); });