@Test public void QueNoSeanNull() { Persona cliente1 = new Persona( "Jorge Chavez", new Documento("45637772", new TipoDocumento("dni")), null, null); Persona cliente2 = new Persona("Miguel Grau", new Documento("45637772", new TipoDocumento("dni")), null, null); Persona cliente3 = new Persona( "Francisco Bolognesi", new Documento("45637772", new TipoDocumento("dni")), null, null); TipoHabitacion tipoHabitacion = new TipoHabitacion("Suite"); Habitacion habitacion101 = new Habitacion(101, tipoHabitacion); Habitacion habitacion102 = new Habitacion(102, tipoHabitacion); Habitacion habitacion103 = new Habitacion(103, tipoHabitacion); Reserva reserva1 = new Reserva("", cliente1, habitacion101, 27, 5, 2012); Reserva reserva2 = new Reserva("", cliente2, habitacion102, 27, 5, 2012); Reserva reserva3 = new Reserva("", cliente3, habitacion103, 27, 5, 2012); assertNotNull(reserva1.getHabitacion()); assertNotNull(reserva2.getHabitacion()); assertNotNull(reserva3.getHabitacion()); assertNotNull(reserva1.getCliente()); assertNotNull(reserva2.getCliente()); assertNotNull(reserva3.getCliente()); }