@@ -0,0 +1,932 @@
+package by.vorokhobko.Inheritance;%0A%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0Aimport org.junit.Test;%0A%0A/**%0A * Test.%0A *%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @version 1.%0A * @since 23.02.2017.%0A */%0A%0Apublic class DoctorTest %7B%0A    /**%0A     * @Test.%0A     */%0A    @Test%0A    public void whenTheDoctorComesIntern() %7B%0A        Doctor doctor = new Doctor(%22Nick%22, 43, %22Oclaxoma%22, %22page 13%22, 11);%0A        int internship = 3;%0A        doctor.setInternship(internship);%0A        int result = doctor.getInternship();%0A        assertThat(result, is(internship));%0A    %7D%0A    /**%0A     * @Test.%0A     */%0A    @Test%0A    public void whenTheDoctorComesResidency() %7B%0A        Doctor doctor = new Doctor(%22Maik%22, 39, %22Visconsin%22, %22page 11%22, 7);%0A        int residency = 2;%0A        doctor.setResidency(residency);%0A        int result = doctor.getResidency();%0A        assertThat(result, is(residency));%0A    %7D%0A%7D

add class TestDoctor