### Question:
SVGShapeViewResource { public SVGShapeView build(final boolean resizable) { return build(new Arguments(resizable)); } SVGShapeViewResource(final Function<Arguments, SVGShapeView> builder); SVGShapeView build(final boolean resizable); SVGShapeView build(final Double width,
                              final Double height,
                              final boolean resizable);  }### Answer:
@Test public void testBuildSpecifyingSize() { tested.build(100d, 222d, true); final ArgumentCaptor<SVGShapeViewResource.Arguments> argumentCaptor = ArgumentCaptor.forClass(SVGShapeViewResource.Arguments.class); verify(builderFunction, times(1)).apply(argumentCaptor.capture()); final SVGShapeViewResource.Arguments arguments = argumentCaptor.getValue(); assertEquals(100d, arguments.width, 0d); assertEquals(222d, arguments.heigth, 0d); assertTrue(arguments.resizable); verify(view, times(1)).refresh(); }
@Test public void testBuildDefaultSize() { tested.build(true); final ArgumentCaptor<SVGShapeViewResource.Arguments> argumentCaptor = ArgumentCaptor.forClass(SVGShapeViewResource.Arguments.class); verify(builderFunction, times(1)).apply(argumentCaptor.capture()); final SVGShapeViewResource.Arguments arguments = argumentCaptor.getValue(); assertTrue(arguments.resizable); verify(view, times(1)).refresh(); }