assertTrue("Invalid match for CNPJ", Pattern.matches("\\d{14}", value));
}
@Test
public void randomFormattedCpf() {
String value = new CnpjFunction(true).generateValue();
assertNotNull("Generated formatted CNPJ can not be null", value);
assertTrue("Invalid match for CNPJ", Pattern.matches("\\d{2}.\\d{3}.\\d{3}/\\d{4}-\\d{2}", value));
}