Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/tests/java/lang/FinalTest.java
package tests.java.lang;

/*
 * #%L
 * Evaluation
 * %%
 * Copyright (C) 2014 Github jjYBdx4IL Projects
 * %%
 * #L%
 */

import org.junit.Ignore;
import static org.junit.Assert.assertEquals;
import org.junit.Test;

public class FinalTest {
    
    public class SomeContainer {
        public int i = 0;
    }
    
    @Test
    public void testModifiabilityOfElementsInFinalArray() {
        final char[] chars = new String("abc").toCharArray();
        chars[1] = 'z';
        assertEquals("azc", new String(chars));
    }
    
    @Test
    public void testFinalReturnValue() {
        SomeContainer sc = getSomeContainer();
        assertEquals(1, sc.i);
        sc.= 2;
        sc = null;
    }
    
    @Ignore
    public final SomeContainer getSomeContainer() {
        final SomeContainer sc = new SomeContainer();
        sc.= 1;
        return sc;
    }
}
-------------------------------------------------------------------------------
Test set: tests.java.lang.FinalTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in tests.java.lang.FinalTest
testModifiabilityOfElementsInFinalArray  Time elapsed: 0 s
testFinalReturnValue  Time elapsed: 0 s