Tests to see if resetting the JavaScript empties the cache.
function testReset() {
drupal_add_library('system', 'drupal');
drupal_add_js('core/misc/collapse.js');
drupal_static_reset('drupal_add_js');
$this
->assertEqual(array(), drupal_add_js(), 'Resetting the JavaScript correctly empties the cache.');
}