Code example for Provider

Methods: getServicesremovegetProperty

     * Class under test for Object remove(Object) 
    public final void testRemoveObject() { 
        Object o = p.remove("MessageDigest.SHA-1");
        assertEquals("SomeClassName", o);
        assertEquals(1, p.getServices().size());
    public final void testService1() { 
        p.put("MessageDigest.SHA-1", "AnotherClassName");
        Provider.Service s = p.getService("MessageDigest", "SHA-1");
        assertEquals("AnotherClassName", s.getClassName());
    public final void testGetServiceCaseSensitivity() { 
        p.put("i.I", "foo");
Connect your IDE to all the code out there  Get Codota for Java