public static boolean onlyOneIsTrueNonThrow(final boolean... expressions) {
        int count = 0;
        for (final boolean expression : expressions) {
            if (expression && ++count > 1) {
                return false;
            }
        }
        return 1 == count;
    }
@Test
    public void testOnlyOneIsTrueNonThrow() {
        Assertions.assertTrue(Utils.onlyOneIsTrueNonThrow(true));

        Assertions.assertFalse(Utils.onlyOneIsTrueNonThrow(true, true, true));
        Assertions.assertFalse(Utils.onlyOneIsTrueNonThrow(true, true, false));
        Assertions.assertFalse(Utils.onlyOneIsTrueNonThrow(false, false, false));
    }