1 package org.mockitousage.bugs.creation; 2 3 4 import org.junit.Test; 5 import org.mockito.Mockito; 6 import org.mockitousage.bugs.creation.api.PublicClass; 7 8 // see GH-233 9 public class PublicMethodInParentWithNonPublicTypeInSignatureTest { 10 11 private Object ref; 12 13 @Test 14 public void java_object_creation() throws Exception { 15 ref = new PublicClass(); 16 } 17 18 @Test 19 public void should_not_fail_when_instantiating() throws Exception { 20 ref = Mockito.mock(PublicClass.class); 21 } 22 } 23