### Question:
ServiceLocator { public static void reset() { instance = new ServiceLocator(); } protected  ServiceLocator(); protected  ServiceLocator(ResourceAccessor accessor); protected  ServiceLocator(PackageScanClassResolver classResolver); protected  ServiceLocator(PackageScanClassResolver classResolver, ResourceAccessor accessor); static ServiceLocator getInstance(); static void setInstance(ServiceLocator newInstance); void setResourceAccessor(ResourceAccessor resourceAccessor); void addPackageToScan(String packageName); Class findClass(Class requiredInterface); Class[] findClasses(Class requiredInterface); Object newInstance(Class requiredInterface); static void reset();  }### Answer:
@Test public void reset() { ServiceLocator instance1 = ServiceLocator.getInstance(); ServiceLocator.reset(); assertFalse(instance1 == ServiceLocator.getInstance()); }