@Test
public void findHistoricPnlTweetsForInstrumentTest() {

	AbstractFXTweetHandler<String> tweetHandler = new SignalFactoryFXTweetHandler(userId);
	ProviderHelper providerHelper = mock(ProviderHelper.class);
	Twitter twitter = mock(Twitter.class);
	tweetHandler.providerHelper = providerHelper;
	tweetHandler.twitter = twitter;
	SearchOperations searchOperations = mock(SearchOperations.class);
	when(twitter.searchOperations()).thenReturn(searchOperations);
	TradeableInstrument<String> nzdusd = new TradeableInstrument<String>("NZD_USD");
	when(providerHelper.toIsoFormat(eq("NZD_USD"))).thenReturn("NZDUSD");
	SearchResults searchResults = returnHistoricPnlSearchResults();
	String query = "Profit: OR Loss: from:SignalFactory";
	when(searchOperations.search(eq(query))).thenReturn(searchResults);
	Collection<Tweet> tweets = tweetHandler.findHistoricPnlTweetsForInstrument(nzdusd);
	assertEquals(1, tweets.size());
}