### Question:
ServiceProfile { @Deprecated public static <T extends Service> ServiceProfile<T> load( Properties properties, String prefix, Class<T> serviceBaseClass, ClassLoader classLoader) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } if (prefix == null) { throw new IllegalArgumentException("prefix must not be null"); } if (serviceBaseClass == null) { throw new IllegalArgumentException("serviceBaseClass must not be null"); } if (classLoader == null) { throw new IllegalArgumentException("classLoader must not be null"); } return load(properties, prefix, serviceBaseClass, ProfileContext.system(classLoader)); } ServiceProfile(
            String prefix,
            Class<? extends T> serviceClass,
            Map<String, String> configuration,
            ProfileContext context); String getPrefix(); Class<? extends T> getServiceClass(); Map<String, String> getConfiguration(); String getConfiguration(String key, boolean mandatory, boolean resolve); String normalize(String key, String value, boolean mandatory, boolean resolve); ProfileContext getContext(); @Deprecated ClassLoader getClassLoader(); T newInstance(); @Deprecated T newInstance(VariableResolver variables); @Deprecated static ServiceProfile<T> load(
            Properties properties,
            String prefix,
            Class<T> serviceBaseClass,
            ClassLoader classLoader); static ServiceProfile<T> load(
            Properties properties,
            String prefix,
            Class<T> serviceBaseClass,
            ProfileContext context); void storeTo(Properties properties);  }### Answer:
@Test public void load() { Properties prop = new Properties(); prop.setProperty("mock1", MockService.class.getName()); prop.setProperty("mock2", ""); ClassLoader cl = getClass().getClassLoader(); ServiceProfile<Service> service = ServiceProfile.load(prop, "mock1", Service.class, ProfileContext.system(cl)); assertThat(service.getPrefix(), is("mock1")); assertThat(service.getServiceClass(), is((Object) MockService.class)); assertThat(service.getConfiguration().size(), is(0)); assertThat(service.getContext().getClassLoader(), is(cl)); }