<?xml version="1.0" encoding="UTF-8"?>
<test-data>
    <test-code>
        <description><![CDATA[
ok, protected field in non final class
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public class Foo {
 protected int x;
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
bad, protected field in final class
     ]]></description>
        <expected-problems>1</expected-problems>
        <code><![CDATA[
public final class Foo {
 protected int x;
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
ok, private field in final class
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public final class Foo {
 private int x;
}
     ]]></code>
    </test-code>
    <test-code>
        <description><![CDATA[
protected field in inner class is ok
     ]]></description>
        <expected-problems>0</expected-problems>
        <code><![CDATA[
public final class Foo {
 private class bar { protected int x; }
}
     ]]></code>
    </test-code>
</test-data>
