### Question:
ApplicationControllerSupport { public static boolean getFinalityOf(Status status) { int codeSeries = status.getCode() - (status.getCode() % 100); switch (codeSeries) { case ACCEPT_SERIES: case PARTIAL_SERIES: return false; case ERROR_SERIES: case REJECT_SERIES: case SUCCESS_SERIES: return true; default: return true; } }  Object getInput(String action); Method getAPIMethod(String action, LifeCycleManagerStateful lcmStateful, boolean async); Status getStatusFromGenericResponse(Object response); static StatusCategory getCategoryOf(Status status); static boolean getFinalityOf(Status status); void logLCMMessage(Object message);  }### Answer:
@Test @Parameters(method = "statusesAndFinalities") public void shouldReturnFinalityForCode(int code, boolean expectedFinality) throws Exception { boolean finality = ApplicationControllerSupport.getFinalityOf(createStatus(code)); assertThat(finality).isEqualTo(expectedFinality); }