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