1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 
6 package org.mockitousage.packageprotected;
7 
8 import org.junit.Test;
9 import org.mockitoutil.TestBase;
10 
11 import static org.mockito.Mockito.mock;
12 
13 public class MockingPackageProtectedTest extends TestBase {
14 
15     static class Foo {}
16 
17     class Bar {}
18 
19     @SuppressWarnings({"CheckReturnValue", "MockitoUsage"})
20     @Test
shouldMockPackageProtectedClasses()21     public void shouldMockPackageProtectedClasses() {
22         mock(PackageProtected.class);
23         mock(Foo.class);
24         mock(Bar.class);
25     }
26 }
27