@@ -0,0 +1,854 @@
+package io.teiler.api.service;%0A%0Aimport java.lang.reflect.Field;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class GroupServiceTest %7B%0A%09%0A%09private static final String ENTROPY_BITS_CONSTANT_NAME = %22ENTROPY_BITS_IN_ONE_CHARACTER%22;%0A%09private static final int ENTROPY_BITS_IN_ONE_CHARACTER_EXPECTED = 5;%0A%09%0A%09@Test%0A%09public void testThatEntropyBitsAreStillSetToFive() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException %7B%0A%09%09Field field = GroupService.class.getDeclaredField(ENTROPY_BITS_CONSTANT_NAME);%0A%09%09Class%3C?%3E fieldType = field.getType();%0A%09%09field.setAccessible(true); // make sure we can access the value of the private field%0A%09%09%0A%09%09Assert.assertEquals(int.class, fieldType);%0A%09%09Assert.assertEquals(%22You can't change mathematical facts.%22, ENTROPY_BITS_IN_ONE_CHARACTER_EXPECTED, field.getInt(null));%0A%09%7D%0A%0A%7D%0A

add test to ensure someone doesn't try to alter mathematics