package hello;

import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.*;

import org.junit.Test;

public class MessageTest {
	
	private Message message = new Message();

	@Test
	public void messageSaysHello() {
		assertThat(message.sayHello(), containsString("Hello"));
	}

}

package hello;

import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.*;

import org.junit.Test;

public class MessageTest {
	
	private Message message = new Message();

	@Test
	public void messageSaysHello() {
		assertThat(message.sayHello(), containsString("Hi,"));
	}

}

Update MessageTest.java