* com.neuralnetwork.shared.values.IValue)}.
*/
@Test
public final void testLink() {
INeuron n = new HiddenNeuron();
ILink l = new Link(n, n, new OneValue());
assertNotNull(l);
try {
new Link(null, n, new OneValue());
} catch (NeuronLinkException e) {
assertEquals(e.getMessage(), "Head link was null.");
}
try {
new Link(n, null, new OneValue());
} catch (NeuronLinkException e) {
assertEquals(e.getMessage(), "Tail link was null.");
}
l = new Link(n, n, null);
assertEquals(l.getWeight(), new ZeroValue());
}