Validating object type created with Mockito

Following code snippet demonstrates Mocking an Interface with and validating it’s type.

import org.junit.Test;
import static org.mockito.Mockito.*;
import static org.junit.Assert.assertTrue;

interface Car {
boolean needsFuel();

double getEngineTemperature();

void driveTo(String destination);

public class FirstMockitoTest {
private Car carObj = mock(Car.class);

public void testIfCarIsACar() {
assertTrue(carObj instanceof Car);