### Question:
LocalizedTitleDefinitionBuilderImpl implements ResourceDefinitionBuilder { @Override public boolean accepts(String data) { final Matcher matcher = ACCEPT_PATTERN.matcher(data); return matcher.matches(); }  @Override final ResourceDefinition convert(String data); @Override boolean accepts(String data); static final String NAME; }### Answer:
@Test public void accepts() throws Exception { assertTrue(builder.accepts("en[My Title] {{my-title}}")); assertTrue(builder.accepts("en[My Title] {{ my-title }}")); assertTrue(builder.accepts("en[Title] fr[Titre] es[Titulo] {{ node-name }}")); assertTrue(builder.accepts("en_US[Title] {{ node-name }}")); assertTrue(builder.accepts("default[Title] en[Title] fr[Titre] es[Titulo] {{ node-name }}")); assertFalse(builder.accepts("en![Title] {{ node-name }}")); assertFalse(builder.accepts("en us[Title] {{ node-name }}")); }