package br.com.realmtech.bean;

import br.com.realmtech.bean.nullImpl.PersonNull;
import org.junit.Assert;
import org.junit.Test;

public class TestPerson {

    private Person createPerson() {
        return PersonNull.getInstance();
    }

    @Test
    public void hasName() {
        Person person = createPerson();
        Name name = person.getName();
        Assert.assertNotNull(name);
    }

    @Test
    public void hasTelephone() {
        Person person = createPerson();
        Telephone telephone = person.getTelephone();
        Assert.assertNotNull(telephone);
    }

    @Test
    public void hasAddress() {
        Person person = createPerson();
        Address address = person.getAddress();
        Assert.assertNotNull(address);
    }
}