@@ -0,0 +1,1794 @@
+/*%0A * Copyright (c) 2016 Henry Addo%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.addhen.raiburari.processor.test;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0A/**%0A * @author Henry Addo%0A */%0Apublic class UserEntityTransformerTest %7B%0A%0A    private UserEntityTransformer mUserEntityTransformer;%0A%0A    private UserEntity mUserEntity;%0A%0A    @Before%0A    public void setUp() %7B%0A        mUserEntityTransformer = new UserEntityTransformer();%0A        assertNotNull(mUserEntityTransformer);%0A        mUserEntity = new UserEntity(%22Foo Bar%22);%0A    %7D%0A%0A    @Test%0A    public void testShouldTransformSingleEntity() %7B%0A        User user = mUserEntityTransformer.transform(mUserEntity);%0A        assertFields(user);%0A    %7D%0A%0A    @Test%0A    public void testShouldTransformCollectionEntity() %7B%0A        List%3CUser%3E users = mUserEntityTransformer%0A                .transform(Arrays.asList(mUserEntity, mUserEntity));%0A        assertNotNull(users);%0A        assertEquals(2, users.size());%0A        assertFields(users.get(0));%0A    %7D%0A%0A    private void assertFields(User user) %7B%0A        assertNotNull(user);%0A        assertEquals(%22Foo Bar%22, user.fullName);%0A    %7D%0A%7D%0A

Add test for transforming collection of entities