### Question:
SpriteAreaProvider implements AreaProvider { @Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_width = Integer.valueOf(args[0]); m_height = Integer.valueOf(args[1]); m_index = Integer.valueOf(args[2]); }  @Override void setParameters(String parameters); @Nonnull @Override Box getSourceArea(@Nonnull RenderImage renderImage); @Nonnull @Override Size getNativeSize(@Nonnull NiftyImage image);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithNoParameters() { SpriteAreaProvider areaProvider = new SpriteAreaProvider(); areaProvider.setParameters(null); }
@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithInvalidParameterCount() { SpriteAreaProvider areaProvider = new SpriteAreaProvider(); areaProvider.setParameters("1,2"); }
@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithInvalidParameters() { SpriteAreaProvider areaProvider = new SpriteAreaProvider(); areaProvider.setParameters("1,2,p"); }