diff --git a/test/util/CharactersTester.java b/test/util/CharactersTester.java new file mode 100644 index 0000000..8de40c6 --- /dev/null +++ b/test/util/CharactersTester.java @@ -0,0 +1,20 @@ +package util; + +import static org.junit.Assert.assertTrue; + +import java.lang.reflect.*; + +import org.junit.Test; + +public class CharactersTester { + + @Test + public void testConstructorIsPrivate() throws Exception { + Constructor constructor = Characters.class.getDeclaredConstructor(); + + assertTrue(Modifier.isPrivate(constructor.getModifiers())); + constructor.setAccessible(true); + constructor.newInstance(); + } + +}