@@ -0,0 +1,2394 @@
+/*%0A * Copyright 2018, TeamDev. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage io.spine.server.aggregate.given.importado;%0A%0Aimport io.spine.server.aggregate.given.importado.command.Move;%0Aimport io.spine.server.aggregate.given.importado.command.MoveVBuilder;%0Aimport io.spine.server.aggregate.given.importado.event.Moved;%0Aimport io.spine.server.aggregate.given.importado.event.MovedVBuilder;%0A%0Aimport static com.google.common.base.Preconditions.checkNotNull;%0A%0A/**%0A * Static utilities for movement DSL.%0A *%0A * @author Alexander Yevsyukov%0A */%0Apublic class MoveMessages %7B%0A%0A    /** Prevents instantiation of this utility class. */%0A    private MoveMessages() %7B%0A    %7D%0A%0A    /**%0A     * Creates a command to move the passed object into the given direction.%0A     */%0A    public static Move move(ObjectId object, Direction direction) %7B%0A        checkNotNull(object);%0A        checkNotNull(direction);%0A        return MoveVBuilder%0A                .newBuilder()%0A                .setObject(object)%0A                .setDirection(direction)%0A                .build();%0A    %7D%0A%0A    /**%0A     * Creates an event on the fact that the object moved into the passed direction.%0A     */%0A    public static Moved moved(ObjectId object, Direction direction) %7B%0A        checkNotNull(object);%0A        checkNotNull(direction);%0A        return MovedVBuilder%0A                .newBuilder()%0A                .setObject(object)%0A                .setDirection(direction)%0A                .build();%0A    %7D%0A%7D%0A

Add test env. message utility