### Question:
InputSelection implements Serializable { public boolean isALLMaskOf2() { return isALLMaskOf2; } private  InputSelection(long inputMask, boolean isALLMaskOf2); long getInputMask(); boolean isInputSelected(int inputId); boolean areAllInputsSelected(); boolean isALLMaskOf2(); int fairSelectNextIndexOutOf2(int availableInputsMask, int lastReadInputIndex); @Override boolean equals(Object o); @Override String toString(); static final InputSelection ALL; static final InputSelection FIRST; static final InputSelection SECOND; }### Answer:
@Test public void testIsALLMaskOf2() { assertTrue(InputSelection.ALL.isALLMaskOf2()); assertTrue(new Builder().select(1).select(2).build().isALLMaskOf2()); assertFalse(InputSelection.FIRST.isALLMaskOf2()); assertFalse(InputSelection.SECOND.isALLMaskOf2()); assertFalse(new Builder().select(3).build().isALLMaskOf2()); }