### Question:
FormattingTuple { static Object[] trimmedCopy(final Object[] argArray) { if (argArray == null || argArray.length == 0) { throw new IllegalStateException( "non-sensical empty or null argument array"); } final int trimemdLen = argArray.length - 1; final Object[] trimmed = new Object[trimemdLen]; System.arraycopy(argArray, 0, trimmed, 0, trimemdLen); return trimmed; } FormattingTuple(final String message);   FormattingTuple(final String message, final Object[] argArray,
                  final Throwable throwable); String getMessage(); Object[] getArgArray(); Throwable getThrowable();  }### Answer:
@Test public void testError() { final Object[] objectArray0 = OBJECT_ARRAY_0; try { FormattingTuple.trimmedCopy(objectArray0); fail("Expecting exception: IllegalStateException"); } catch (final IllegalStateException e) { } try { FormattingTuple.trimmedCopy(null); fail("Expecting exception: IllegalStateException"); } catch (final IllegalStateException e) { } }