@Test
public void addNewTargetByXxx() throws Exception {

	Class<ScreenshotArgumentBuilder> clss = ScreenshotArgumentBuilder.class;
	for (Pair<String, SelectorType> mapping : TYPE_MAPPINGS) {
		Method method = clss.getMethod("addNewTargetBy" + mapping.getKey(), String.class);
		ScreenshotArgumentBuilder builder = new ScreenshotArgumentBuilder("ssid");
		method.invoke(builder, "target");
		ScreenshotArgument arg = builder.build();
		assertThat(arg.getScreenshotId(), is("ssid"));
		assertThat(arg.getTargets().size(), is(1));
		assertThat(arg.getHiddenElementSelectors().isEmpty(), is(true));
		assertThat(arg.getTargets().get(0), is(new CompareTarget(ScreenArea.of(mapping.getValue(), "target"))));
	}
}