getMessage())->toBe('Brand code "AAA01" already exists.') ->and($exception)->toBeInstanceOf(DomainException::class); }); });