// Path: src/test/java/org/fuin/ddd4j/test/VendorId.java
// @Immutable
// @XmlJavaTypeAdapter(VendorIdConverter.class)
// public final class VendorId extends AbstractUuidValueObject implements AggregateRootId, ValueObjectWithBaseType<UUID> {
// 
//     private static final long serialVersionUID = 1000L;
// 
//     /** Type of entity this identifier represents. */
//     public static final EntityType ENTITY_TYPE = new StringBasedEntityType("Vendor");
// 
//     private final UUID uuid;
// 
//     /**
//      * Default constructor.
//      */
//     public VendorId() {
//         super();
//         uuid = UUID.randomUUID();
//     }
// 
//     /**
//      * Constructor with UUID.
//      * 
//      * @param uuid
//      *            UUID.
//      */
//     public VendorId(@NotNull final UUID uuid) {
//         super();
//         Contract.requireArgNotNull("uuid", uuid);
//         this.uuid = uuid;
//     }
// 
//     @Override
//     public final UUID asBaseType() {
//         return uuid;
//     }
// 
//     @Override
//     public final EntityType getType() {
//         return ENTITY_TYPE;
//     }
// 
//     @Override
//     public final String asTypedString() {
//         return getType() + " " + asString();
//     }
// 
//     @Override
//     public final String asString() {
//         return uuid.toString();
//     }
// 
//     @Override
//     public final String toString() {
//         return uuid.toString();
//     }
// 
// }


import org.fuin.ddd4j.test.VendorId;
import org.junit.Test;
import org.xmlunit.builder.DiffBuilder;
import org.xmlunit.diff.Diff;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;
import static org.assertj.core.api.Assertions.assertThat;
import static org.fuin.utils4j.JaxbUtils.marshal;
import static org.fuin.utils4j.JaxbUtils.unmarshal;
import static org.fuin.utils4j.Utils4J.deserialize;
import static org.fuin.utils4j.Utils4J.serialize;
import java.util.UUID;
import jakarta.json.bind.Jsonb;
import jakarta.json.bind.JsonbBuilder;
import jakarta.json.bind.JsonbConfig;
import org.eclipse.yasson.FieldAccessStrategy;
/**
 * Copyright (C) 2015 Michael Schnell. All rights reserved. 
 * http://www.fuin.org/
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3 of the License, or (at your option) any
 * later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see http://www.gnu.org/licenses/.
 */
package org.fuin.ddd4j.ddd;






/**
 * Tests for {@link AggregateAlreadyExistsException}.
 */
// CHECKSTYLE:OFF Disabled for test
public class AggregateAlreadyExistsExceptionTest {

    @Test
    public void testSerializeDeserialize() {

        // PREPARE
// Path: src/test/java/org/fuin/ddd4j/test/VendorId.java
// @Immutable
// @XmlJavaTypeAdapter(VendorIdConverter.class)
// public final class VendorId extends AbstractUuidValueObject implements AggregateRootId, ValueObjectWithBaseType<UUID> {
// 
//     private static final long serialVersionUID = 1000L;
// 
//     /** Type of entity this identifier represents. */
//     public static final EntityType ENTITY_TYPE = new StringBasedEntityType("Vendor");
// 
//     private final UUID uuid;
// 
//     /**
//      * Default constructor.
//      */
//     public VendorId() {
//         super();
//         uuid = UUID.randomUUID();
//     }
// 
//     /**
//      * Constructor with UUID.
//      * 
//      * @param uuid
//      *            UUID.
//      */
//     public VendorId(@NotNull final UUID uuid) {
//         super();
//         Contract.requireArgNotNull("uuid", uuid);
//         this.uuid = uuid;
//     }
// 
//     @Override
//     public final UUID asBaseType() {
//         return uuid;
//     }
// 
//     @Override
//     public final EntityType getType() {
//         return ENTITY_TYPE;
//     }
// 
//     @Override
//     public final String asTypedString() {
//         return getType() + " " + asString();
//     }
// 
//     @Override
//     public final String asString() {
//         return uuid.toString();
//     }
// 
//     @Override
//     public final String toString() {
//         return uuid.toString();
//     }
// 
// }


// Path: src/test/java/org/fuin/ddd4j/ddd/AggregateAlreadyExistsExceptionTest.java
import org.fuin.ddd4j.test.VendorId;
import org.junit.Test;
import org.xmlunit.builder.DiffBuilder;
import org.xmlunit.diff.Diff;
import nl.jqno.equalsverifier.EqualsVerifier;
import nl.jqno.equalsverifier.Warning;
import static org.assertj.core.api.Assertions.assertThat;
import static org.fuin.utils4j.JaxbUtils.marshal;
import static org.fuin.utils4j.JaxbUtils.unmarshal;
import static org.fuin.utils4j.Utils4J.deserialize;
import static org.fuin.utils4j.Utils4J.serialize;
import java.util.UUID;
import jakarta.json.bind.Jsonb;
import jakarta.json.bind.JsonbBuilder;
import jakarta.json.bind.JsonbConfig;
import org.eclipse.yasson.FieldAccessStrategy;

/**
 * Copyright (C) 2015 Michael Schnell. All rights reserved. 
 * http://www.fuin.org/
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 3 of the License, or (at your option) any
 * later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see http://www.gnu.org/licenses/.
 */
package org.fuin.ddd4j.ddd;






/**
 * Tests for {@link AggregateAlreadyExistsException}.
 */
// CHECKSTYLE:OFF Disabled for test
public class AggregateAlreadyExistsExceptionTest {

    @Test
    public void testSerializeDeserialize() {

        // PREPARE
        final VendorId vendorId = new VendorId(UUID.fromString("4dcf4c2c-10e1-4db9-ba9e-d1e644e9d119"));