### Question:
NinePartResizeStrategy implements RenderStrategy { @Override public void setParameters(String parameters) { String[] args = getArguments(parameters); m_row0 = new NinePartResizeRow(args, 0); m_row1 = new NinePartResizeRow(args, 4); m_row2 = new NinePartResizeRow(args, 8); }  @Override void setParameters(String parameters); @Override void render(
      @Nonnull RenderDevice device,
      @Nonnull RenderImage image,
      @Nonnull Box sourceArea,
      int x,
      int y,
      int width,
      int height,
      @Nonnull Color color,
      float scale);  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithNoParameters() { NinePartResizeStrategy strategy = new NinePartResizeStrategy(); strategy.setParameters(null); }
@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithInvalidParameterCount() { NinePartResizeStrategy strategy = new NinePartResizeStrategy(); strategy.setParameters("1,2"); }
@Test(expected = IllegalArgumentException.class) public void testSetParametersThrowsIllegalArgumentExceptionWithInvalidParameters() { NinePartResizeStrategy strategy = new NinePartResizeStrategy(); strategy.setParameters("1,2,3,4,5,6,7,8,9,10,11,p"); }