PropertiesWrapper implements Properties { @Nullable @Override public Object getProperty(@NotNull String name) throws NoSuchFieldException { FieldInstance field = getFieldInstance(name); return field.getValue(); } private  PropertiesWrapper(@NotNull Object object); protected  PropertiesWrapper(); static Properties wrapObject(@NotNull Object object); static String[] getAllPropertyNames(Class clazz); @NotNull @Override String[] getAllPropertyNames(); @Nullable @Override Object getProperty(@NotNull String name); @Override void setProperty(@NotNull String name, @NotNull String value); @Override void addProperty(@NotNull String name, @NotNull String value); @Override void removeProperty(@NotNull String name, @NotNull String value); @Override void clearProperty(@NotNull String name, @Nullable String value); @Nullable @Override Object getPropertyUnchecked(@NotNull String name); @Override boolean setPropertyUnchecked(@NotNull String name, @NotNull String value); @Override boolean addPropertyUnchecked(@NotNull String name, @NotNull String value); @Override boolean removePropertyUnchecked(@NotNull String name, @NotNull String value); @Override boolean clearPropertyUnchecked(@NotNull String name, @Nullable String value);  }
@Test public void testGetProperty() throws Exception { assertEquals(Comprehensive.A_INT, comprehensive.getProperty("aInt")); assertEquals(Comprehensive.STRING_OBJECT_MAP, comprehensive.getProperty("stringObjectMap")); }
@Test public void testGetPropertyAnyCase() throws Exception { assertEquals(Comprehensive.A_INT, comprehensive.getProperty("aint")); assertEquals(Comprehensive.STRING_OBJECT_MAP, comprehensive.getProperty("STRINGOBJECTMAP")); }
@Test public void testGetPropertyNested() throws Exception { assertEquals(Comprehensive.CUSTOM.name, comprehensive.getProperty("custom.name")); }
@Test(expected = NoSuchFieldException.class) public void testGetPropertyNoSuchField() throws Exception { comprehensive.getProperty("booboooboo"); }
@Test(expected = NoSuchFieldException.class) public void testGetPropertyNestedNoSuchField() throws Exception { comprehensive.getProperty("custom.fake"); }
@Test public void testGetPropertyAlias() throws Exception { assertEquals(comprehensive.custom.name, comprehensive.getProperty("cname")); }
@Test(expected = NoSuchFieldException.class) public void testGetPropertyFakeAlias() throws Exception { comprehensive.getProperty("bname"); }
@Test(expected = NoSuchFieldException.class) public void testGetPropertyBadAlias() throws Exception { PropertyAliases.createAlias(Comprehensive.class, "testing", "custom", "test"); comprehensive.getProperty("testing"); }