### Question:
LeftSideZerosFormatter implements Formatter { @Override public boolean canBeFormatted(String value) { return value.matches("\\d{0," + formattedLength + "}"); } LeftSideZerosFormatter(int formattedLength); @Override String format(String value); @Override String unformat(String value); @Override boolean isFormatted(String value); @Override boolean canBeFormatted(String value);  }### Answer:
@Test public void shouldVerifyIfAValueCanBeFormattedOrNot() throws Exception { assertTrue(formatter.canBeFormatted("00001234567890")); assertTrue(formatter.canBeFormatted("00001234")); assertTrue(formatter.canBeFormatted("1234567890")); assertFalse(formatter.canBeFormatted("123456789012345")); assertFalse(formatter.canBeFormatted("abc123")); }