package com.adyen;

import com.adyen.model.applicationinfo.ApplicationInfo;
import org.junit.Test;

import static com.adyen.Client.LIB_NAME;
import static com.adyen.Client.LIB_VERSION;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class ApplicationInfoTest {

    @Test
    public void TestApplicationInfoEquals() {
        ApplicationInfo applicationInfo = new ApplicationInfo();
        ApplicationInfo applicationInfo2 = new ApplicationInfo();

        assertEquals(applicationInfo, applicationInfo2);
        assertNotNull(applicationInfo.getAdyenLibrary());
        assertEquals(LIB_NAME, applicationInfo.getAdyenLibrary().getName());
        assertEquals(LIB_VERSION, applicationInfo.getAdyenLibrary().getVersion());
    }
}

@@ -559,57 +559,270 @@
     
-    assertNotNull(applicationInfo.getAdyenLibrary
+%7D%0A%0A    @Test%0A    public void TestApplicationInfoPrefilledLibraryFields() %7B%0A        ApplicationInfo applicationInfo = new ApplicationInfo();%0A%0A        assertNotNull(applicationInfo.getAdyenLibrary());%0A        assertNotNull(applicationInfo.getAdyenLibrary().getName
 ());
@@ -891,32 +891,103 @@
 y().getName());%0A
+        assertNotNull(applicationInfo.getAdyenLibrary().getVersion());%0A
         assertEq

Add application info to adyen-java-api-library - Add default library fields test