@Test
public void testResolve() throws Exception {

  File parentThemeFile = new File(this.getClass().getClassLoader().getResource("parent-theme.json").getFile());
  File childThemeFile = new File(this.getClass().getClassLoader().getResource("child-theme.json").getFile());
  ThemeModule parentModule = new ThemeModule(parentThemeFile);
  ThemeModule childModule = new ThemeModule(childThemeFile);
  childModule.resolve(parentModule, null, null, null);
  Theme childTheme = childModule.getModuleInfo().getThemeMap().get(ThemeModule.THEME_KEY);
  Theme parentTheme = parentModule.getModuleInfo().getThemeMap().get(ThemeModule.THEME_KEY);
  assertNotNull(childTheme.getThemeConfiguration().getLayouts()); // not defined in child should be inherited
  assertEquals(10, parentTheme.getThemeConfiguration().getPlacement().getConfigs().size());
  assertEquals(12, childTheme.getThemeConfiguration().getPlacement().getConfigs().size()); //two more inherited
  assertEquals(10, parentTheme.getThemeConfiguration().getWidgets().size());
  assertEquals(12, childTheme.getThemeConfiguration().getWidgets().size());
}