1 /* 2 * Copyright (c) 2017 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockitoinline; 6 7 import org.junit.Test; 8 import org.mockito.Mockito; 9 10 public class FinalClassMockingTest { 11 12 @SuppressWarnings("CheckReturnValue") 13 @Test no_exception_while_mocking_final_class()14 public void no_exception_while_mocking_final_class() throws Exception { 15 Mockito.mock(FinalClass.class); 16 } 17 18 private static final class FinalClass { 19 20 } 21 22 } 23