### Question:
PlatformPluginBundlingURLConnection extends URLConnection { public static int getMaxSize( String query ) { if ( query != null ) { Matcher matcher = maxSizePattern.matcher( query ); if ( matcher.matches() ) { return Integer.parseInt( matcher.group( 1 ) ); } } return TEN_MEGABYTES; } PlatformPluginBundlingURLConnection( URL u, List<PluginFileHandler> pluginFileHandlers );  PlatformPluginBundlingURLConnection( URL u, List<PluginFileHandler> pluginFileHandlers, BundleStateManager bundleStateManager ); static int getMaxSize( String query ); @Override void connect(); @Override InputStream getInputStream(); static final int TEN_MEGABYTES; }### Answer:
@Test public void testGetMaxSizeReturnsTenMegsByDefault() { assertEquals( PlatformPluginBundlingURLConnection.TEN_MEGABYTES, PlatformPluginBundlingURLConnection.getMaxSize( null ) ); assertEquals( PlatformPluginBundlingURLConnection.TEN_MEGABYTES, PlatformPluginBundlingURLConnection.getMaxSize( "" ) ); }
@Test public void testGetMaxSizeReturnsMaxSize() { assertEquals( 101, PlatformPluginBundlingURLConnection.getMaxSize( "maxSize=101" ) ); }