### Question:
DecompositionFactory { public static Decomposition<?> getDecomposition(String decompositionName) { Decomposition<?> decomposition = STATIC_INSTANCES.get(decompositionName); if (decomposition != null) { return decomposition; } throw new IllegalArgumentException("Could not get decomposition " + decompositionName); } private  DecompositionFactory(); static Decomposition<?> getDecomposition(String decompositionName); static String getDecompositionName(Decomposition<?> decomposition); static final String LU_COMMONS_NAME; static final String QR_COMMONS_NAME; static final String SV_COMMONS_NAME; static final Decomposition<?> LU_COMMONS; static final Decomposition<?> QR_COMMONS; static final Decomposition<?> SV_COMMONS; }### Answer:
@Test public void testBadName() { assertThatIllegalArgumentException() .isThrownBy(() -> DecompositionFactory.getDecomposition("X")); }