### Question:
FeedbackQuestion { public int getIntRangeMin() { Matcher matcher = intRangeMatcher(); if (matcher.matches()) { return Integer.parseInt(matcher.group(1)); } else { throw new IllegalStateException("Not an intrange"); } } FeedbackQuestion();  FeedbackQuestion(int id, String question, String kind); int getId(); void setId(int id); String getQuestion(); void setQuestion(String question); String getKind(); void setKind(String kind); boolean isText(); boolean isIntRange(); int getIntRangeMin(); int getIntRangeMax();  }### Answer:
@Test (expected = IllegalStateException.class) public void getIntRangeMinWhenKindIsNotIntRangeTest() { question.getIntRangeMin(); }