@@ -0,0 +1,2338 @@
+package org.jpos.iso;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0Aimport static org.junit.jupiter.api.Assertions.assertThrows;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Apublic final class ServiceCodeTest %7B%0A%0A    @Test%0A    public void nullServiceCode() %7B%0A        assertThrows(NullPointerException.class, () -%3E %7B%0A            @SuppressWarnings(%22unused%22)%0A            ServiceCode sc = new ServiceCode(null);%0A        %7D);%0A    %7D%0A    %0A    @Test%0A    public void invalidLengthServiceCode() %7B%0A        assertThrows(IllegalArgumentException.class, () -%3E %7B%0A            @SuppressWarnings(%22unused%22)%0A            ServiceCode sc = new ServiceCode(%221234%22);%0A        %7D);%0A    %7D%0A%0A    @Test%0A    public void invalidServiceCode12E() %7B%0A        assertThrows(IllegalArgumentException.class, () -%3E %7B%0A            @SuppressWarnings(%22unused%22)%0A            ServiceCode sc = new ServiceCode(%2212E%22);%0A        %7D);%0A    %7D%0A    %0A    @Test%0A    public void invalidServiceCodeSign22() %7B%0A        assertThrows(IllegalArgumentException.class, () -%3E %7B%0A            @SuppressWarnings(%22unused%22)%0A            ServiceCode sc = new ServiceCode(%22+22%22);%0A        %7D);%0A    %7D    %0A    %0A    @Test%0A    public void validLengthServiceCode() %7B%0A        @SuppressWarnings(%22unused%22)%0A        ServiceCode sc = new ServiceCode(%22201%22);%0A    %7D%0A    %0A    @Test%0A    public void testServiceCode201() %7B%0A        ServiceCode sc = new ServiceCode(%22201%22);        %0A        assertTrue(sc.isICC(), %22Service code should be ICC%22);%0A        assertTrue(sc.hasNoRestrictions(), %22Service code should have no restrictions%22);%0A        assertTrue(sc.isInternational(), %22Service code should be international%22);%0A        assertTrue(sc.isNormalAuthorization(), %22Service code should be normal authorization%22);%0A        assertFalse(sc.isPINRequired(), %22Service code should not require PIN%22);%0A        assertFalse(sc.isPrivate(), %22Service code should not be private%22);%0A        assertFalse(sc.isNational(), %22Service code should not be national%22);%0A        assertFalse(sc.isTest(), %22Service code should not be test%22);%0A        assertFalse(sc.isGoodsAndServicesOnly(), %22Service code should not be good and services only%22);%0A        assertFalse(sc.isATMOnly(), %22Service code should not be ATM only%22);%0A        assertFalse(sc.isCashOnly(), %22Service code should not be cash only%22);%0A    %7D %0A%7D

Add unit tests for 'ServiceCode'.