### Question:
AsnSizeConstraint { public boolean isFixedSize() { return max != 0 && max == min; } AsnSizeConstraint(int fixedSize);  AsnSizeConstraint(int min, int max); boolean isUnconstrained(); boolean isFixedSize(); int getMax(); int getMin(); @Override boolean equals(Object obj); @Override int hashCode(); static final AsnSizeConstraint UNCONSTRAINED; }### Answer:
@Test public void isFixedSize() { final AsnSizeConstraint constraint = new AsnSizeConstraint(1); assertThat(constraint.isUnconstrained()).isFalse(); assertThat(constraint.isFixedSize()).isTrue(); assertThat(constraint.getMin()).isEqualTo(1); assertThat(constraint.getMax()).isEqualTo(1); }