@@ -0,0 +1,1681 @@
+package sds.util;%0A%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0Aimport static sds.util.AccessFlags.*;%0A%0Apublic class AccessFlagsTest %7B%0A%09@Test%0A%09public void getTest() %7B%0A%09%09// class and nested.%0A%09%09assertThat(get(ACC_PUBLIC %7C ACC_FINAL %7C ACC_SYNTHETIC %7C ACC_INTERFACE, %22class%22)%0A%09%09%09%09, is(%22public final synthetic interface %22));%0A%09%09assertThat(get(ACC_PUBLIC %7C ACC_FINAL %7C ACC_ENUM, %22class%22)%0A%09%09%09%09, is(%22public final enum %22));%0A%09%09assertThat(get(ACC_PUBLIC %7C ACC_ANNOTATION, %22class%22)%0A%09%09%09%09, is(%22public @interface %22));%0A%09%09assertThat(get(ACC_PUBLIC %7C ACC_STATIC %7C ACC_FINAL, %22class%22)%0A%09%09%09%09, is(%22 %3E%3E%3E unknown access flag %3C%3C%3C%22));%0A%09%09assertThat(get(ACC_PUBLIC %7C ACC_FINAL %7C ACC_STATIC, %22nested%22)%0A%09%09%09%09, is(%22public static final class %22));%0A%0A%09%09// field.%0A%09%09assertThat(%0A%09%09%09%09get(ACC_PUBLIC %7C ACC_FINAL %7C ACC_STATIC %7C ACC_VOLATILE%0A%09%09%09%09%09%09%7C ACC_TRANSIENT %7C ACC_SYNTHETIC %7C ACC_ENUM%0A%09%09%09%09%09, %22field%22)%0A%09%09%09%09, is(%22public static final volatile transient synthetic enum %22));%0A%09%09assertThat(get(ACC_PRIVATE %7C ACC_FINAL %7C ACC_STATIC, %22field%22), is(%22private static final %22));%0A%09%09assertThat(get(ACC_PROTECTED %7C ACC_FINAL, %22field%22), is(%22protected final %22));%0A%09%09assertThat(get(ACC_PROTECTED %7C ACC_FINAL %7C ACC_INTERFACE, %22field%22)%0A%09%09%09%09, is(%22 %3E%3E%3E unknown access flag %3C%3C%3C%22));%0A%0A%09%09// method%0A%09%09assertThat(%0A%09%09%09%09get(ACC_PUBLIC %7C ACC_FINAL %7C ACC_STATIC %7C ACC_SYNCHRONIZED %7C ACC_SYNTHETIC%0A%09%09%09%09%09%09%7C ACC_BRIDGE %7C ACC_NATIVE %7C ACC_ABSTRACT %7C ACC_STRICT %0A%09%09%09%09%09, %22method%22)%0A%09%09%09%09, is(%22public static final synchronized bridge native abstract strict synthetic %22));%0A%09%09assertThat(get(ACC_PRIVATE %7C ACC_FINAL %7C ACC_STATIC %7C ACC_ANNOTATION, %22method%22)%0A%09%09%09%09, is(%22 %3E%3E%3E unknown access flag %3C%3C%3C%22));%0A%09%7D%0A%7D

test AccessFlags class.