ThemeResource implements Serializable { public ThemeResource( Theme theme, String resource ) { this.theme = theme; location = resource; } ThemeResource( Theme theme, String resource ); String getLocation(); void setLocation( String location ); Theme getTheme(); void setTheme( Theme theme );  }
@Test public void testThemeResource() { ThemeResource resource = new ThemeResource( THEME, RESOURCE ); assertEquals( RESOURCE, resource.getLocation() ); assertEquals( THEME, resource.getTheme() ); Theme newTheme = new Theme( ID, "newTheme", ROOT_DIR ); resource.setTheme( newTheme ); assertEquals( newTheme, resource.getTheme() ); String newLocation = "newLocation"; resource.setLocation( newLocation ); assertEquals( newLocation, resource.getLocation() ); }