ConverterFactory { public static StringToLongConverter createLongConverter(boolean useGrouping, boolean percentage) { String msg = messageService.getMessage(CANNOT_CONVERT, VaadinUtils.getLocale()); return percentage ? new PercentageLongConverter(msg, useGrouping) : new GroupingStringToLongConverter(msg, useGrouping); } private  ConverterFactory(); static BigDecimalConverter createBigDecimalConverter(boolean currency, boolean percentage,
			boolean useGrouping, int precision, String currencySymbol); @SuppressWarnings("unchecked") static Converter<String, T> createConverterFor(Class<T> clazz, AttributeModel attributeModel,
			boolean grouping); static StringToIntegerConverter createIntegerConverter(boolean useGrouping, boolean percentage); static StringToLongConverter createLongConverter(boolean useGrouping, boolean percentage); static StringToDoubleConverter createDoubleConverter(boolean currency, boolean percentage,
			boolean useGrouping, int precision, String currencySymbol); static ZonedDateTimeToLocalDateTimeConverter createZonedDateTimeConverter(ZoneId zoneId);  }
@Test public void testCreateLongConverter1() { StringToLongConverter cv = ConverterFactory.createLongConverter(true, false); assertTrue(cv instanceof GroupingStringToLongConverter); }
@Test public void testCreateLongConverter() { StringToLongConverter cv = ConverterFactory.createLongConverter(true, true); assertTrue(cv instanceof PercentageLongConverter); }