@Test
public void testSameJournals() {

    DocumentProtos.DocumentMetadata doc1 = MockDocumentMetadataFactory.createDocumentMetadata("Ala ma kota", "12341234", "Koko Journal");
    DocumentProtos.DocumentMetadata doc2 = MockDocumentMetadataFactory.createDocumentMetadata("Ala ma kota", "", "Koko Journal");
    DocumentProtos.DocumentMetadata doc3 = MockDocumentMetadataFactory.createDocumentMetadata("Ala ma kota", "1234-1234", "New Jojko Journal");
    DocumentProtos.DocumentMetadata doc4 = MockDocumentMetadataFactory.createDocumentMetadata("Ala ma kota", "", "JamboBambo");
    DocumentProtos.DocumentMetadata doc5 = MockDocumentMetadataFactory.createDocumentMetadata("Ala ma kota", "4444-4444", "New Jojko Journal");
    
    vote = journalVoter.vote(doc1, doc2);
    Assert.assertEquals(vote.getStatus(), Vote.VoteStatus.PROBABILITY);
    Assert.assertTrue(vote.getProbability() > 0.5);
    
    vote = journalVoter.vote(doc1, doc3);
    Assert.assertEquals(vote.getStatus(), Vote.VoteStatus.PROBABILITY);
    Assert.assertTrue(vote.getProbability() < 0.5);
    
    vote = journalVoter.vote(doc1, doc4);
    Assert.assertEquals(vote.getStatus(), Vote.VoteStatus.NOT_EQUALS);
    vote = journalVoter.vote(doc1, doc5);
    Assert.assertEquals(vote.getStatus(), Vote.VoteStatus.PROBABILITY);
    Assert.assertTrue(vote.getProbability() < 0.5);
    
    vote = journalVoter.vote(doc3, doc5);
    Assert.assertEquals(vote.getStatus(), Vote.VoteStatus.PROBABILITY);
    Assert.assertTrue(vote.getProbability() > 0.5);
}