@Test
public void testConnectionFactory() {
Environment.getInstance().setUseWeightsSharedMemory(true);
ConnectionFactory f = new ConnectionFactory();
FullyConnected fc1 = f.fullyConnected(null, null, 2, 3);
FullyConnected fc2 = f.fullyConnected(null, null, 5, 2);
assertTrue(fc1.getWeights().getElements() == fc2.getWeights().getElements());
assertEquals(16, fc1.getWeights().getElements().length, 0);
assertEquals(0, fc1.getWeights().getStartOffset(), 0);
assertEquals(3, fc1.getWeights().getRows(), 0);