### Question:
TemplatePattern { public boolean startsWithTemplatePrefix(String key) { return templatePrefixes.stream().anyMatch(key::startsWith); }  static TemplatePattern defaultPattern(); boolean startsWithTemplatePrefix(String key); String extractTemplateType(String str); String extractTemplateName(String str); static final Pattern DEFAULT_PATTERN; }### Answer:
@Test void startsWithTemplatePrefix() { assertFalse(templatePattern.startsWithTemplatePrefix("microconfig")); assertTrue(templatePattern.startsWithTemplatePrefix(microTemplate)); assertTrue(templatePattern.startsWithTemplatePrefix(mgmtTemplate)); }