### Question:
PathInits implements Serializable { public boolean isInitialized(String property) { return initAllProps || propertyToInits.containsKey(property); } PathInits(String... initStrs); PathInits get(String property); boolean isInitialized(String property); static PathInits getFor(PathMetadata metadata, PathInits root); static final PathInits DEFAULT; static final PathInits DIRECT; static final PathInits DIRECT2; }### Answer:
@Test public void defaultInits() { assertFalse(PathInits.DEFAULT.isInitialized("")); }
@Test public void isInitialized() { PathInits inits = new PathInits(".2").get(""); assertFalse(inits.isInitialized("1")); assertTrue(inits.isInitialized("2")); }
@Test public void wildcard() { assertTrue(new PathInits("*").isInitialized("")); }