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