package org.traccar.protocol;

import org.traccar.helper.TestIdentityManager;
import static org.traccar.helper.DecoderVerifier.verify;
import static org.junit.Assert.assertNull;
import org.junit.Test;

public class CarscopProtocolDecoderTest extends ProtocolDecoderTest {

    @Test
    public void testDecode() throws Exception {

        CarscopProtocolDecoder decoder = new CarscopProtocolDecoder(new CarscopProtocol());

        verify(decoder.decode(null, null,
                "*040331141830UB05123456789012345061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));

        verify(decoder.decode(null, null,
                "*040331141830UB04999999984061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));

        verify(decoder.decode(null, null,
                "*040331141830UA012Hi-jack061825A2934.0133N10627.2544E000.0040331309.6200000000L000000"));

    }

}

@@ -872,21 +872,178 @@
 000000%22));%0A%0A
+        verify(decoder.decode(null, null,%0A                %22*150817160254UB05CC8011400042499160254A2106.8799S14910.2583E000.0150817158.3511111111L000000%22));%0A%0A
     %7D%0A%0A%7D%0A

Add CCTR-620+ test case