@Test
public void getReason() {

    for (IdMaskSecurityException.Reason reason : IdMaskSecurityException.Reason.values()) {
        assertEquals(reason, new IdMaskSecurityException("test", reason).getReason());
    }
}