package com.mycompany.app.lang;

import static org.junit.Assert.*;
import org.junit.Test;

import java.util.Arrays;

/**
 * Created by Administrator on 2016/2/23.
 */
public class ArrayTest {

    @Test
    public void copyofRange() {
        byte[] src = new byte[]{2, 3, 4, 5, 6, 7, 9};
        assertArrayEquals(new byte[]{5, 6, 7, 9}, Arrays.copyOfRange(src, 3, src.length));
    }

}
