LoessSettings { @Override public String toString() { return String.format("[width = %d, degree = %d, jump = %d]", fWidth, fDegree, fJump); } LoessSettings(int width, int degree, int jump);  LoessSettings(int width, int degree);  LoessSettings(int width); final int getWidth(); final int getDegree(); final int getJump(); @Override String toString();  }
@Test public void toStringTest() { LoessSettings settings = new LoessSettings(23); String str = settings.toString(); assertEquals("[width = 23, degree = 1, jump = 3]", str); }